Glance icon size for watchOS? - icons

I'm trying to use one of the Glance templates and placing my image in the upper left corner. The problem is that my icon is showing up fuzzy.
The Apple docs doesn't specify the size of what this icon should be. Any ideas on what the 1x, 2x, and 3x sizes should be for this Glance template?
Also, do I drag and image control there or do I just set that section's background image to my icon?

Downloadable templates containing details of the glance image sizes can be found in the Resources section of that Apple Watch HIG document, under Templates.
Photoshop templates
Sketch templates
The Group Left Small image size should be 30#2x (38mm) or 33.5#2x (42mm). watchOS wouldn't need 1x or 3x image sizes.
The necessary controls are already provided by the template. As you mentioned, you'd simply set that group's background image to be your icon.

Related

Wordpress: choose an image size when creating an image gallery

Goal: When creating an image gallery in Wordpress 5.3.2 using the Gutenberg editor, I'd like to be able to select the image size.
Why: The block gallery automatically serves the large image and then relies on CSS to resize the image to fit the flexbox layout. Instead I'd like to choose the medium size for my site, which is closer in size to what's displayed in the layout. This will improve load times, as users aren't being served oversized images.
Question: Is there some code I can add to functions.php that will give me the option to choose the image size I want or to override the default large size for the medium size?
I understand what you're going for and unfortunately WordPress and Gutenberg still loads the full-size, original image (and just resizes it in css) :(
There are several closely-related issues that describe this
https://core.trac.wordpress.org/ticket/45407
https://github.com/WordPress/gutenberg/issues/9620
https://github.com/WordPress/gutenberg/issues/6177
Update, 2021:
Gutenberg no longer loads the full-size, original image and you can choose which in the block's right side panel which of the registered image sizes to load;
but that image is often still larger than necessary and not fully optimized; more information at https://gist.github.com/skorasaurus/a01249d4302226bf12c80dd979322303

Change background image to video through css

In the attached example (here) there is the first background image of the woman in the car, I would like to transfer this out and instead put an auto run, on loop video (mp4) full width and same height in the place. All other copy and content is to remain the same - any ideas how I can do this simply?
All other images if you click on the arrows should also remain. Thanks!
For simplicity. You may use a GIF as a background-image:url(GIF_PATH) instead of a video.
Here is a codepen example
https://codepen.io/leemark/pen/dJxHp
or else you have use the HTML element to embed video content in a document.
https://developer.mozilla.org/en/docs/Web/HTML/Element/video
Also you may also like to have a look at owl corousel

Google App Maker - Clickable Image Map

I am attempting to create an apartment complex app for my company.
I want to add an image of the overall floorplan for the apartment complex (I added the image to my app).
Now I'd like to add one of the following:
• custom shaped buttons that line up with each Unit in the complex
or
• Setup a clickable image map on the layout image
I humbly thank you in advance for helping me figure this out!
You can try to split your big image into several small images and made different images clickable.
Or you can put big image on fixed layout, and put buttons on fixed positions something like this
blue circles with icons are buttons.

Rendering Image filters

I am using QGraphicsView/QGraphicsScene framework to display an HD image (and some overlaying items). Image will appear scaled down but I need the full resolution as the user is able to zoom in to parts of the image.
I need to apply some simple filters to the image like display the Red channel. How can I apply the filters to only the visible part of the image? For example if the original image size is 1920x1080 displayed scaled down to 720x480 I want to apply the filter only to the 720x480 image.
This will greatly reduce the CPU cycles used to apply filters.

Why is custom image for tab bar item so poor?

"Pika" and "Pikachu" is custom images. How come they are so poor comparing to the "Downloads" tab bar item icon which is from the system? The images is png and a resolution about 25x25px. I have tried differents resolution but all give this poor view. Hope you guys can help - Thank you.
If you follow the Icon and Image Sizes Guidelines for the device you are building for the result should work as expected. In this case you would likely want to use 50x50 (#2x) image sizes if you are creating a UITabBar for the iPhone 5:
Using this the appropriate sized icons should yeild nice sharp icons when the project is built:

Resources