Hello,
Looking to create a slideshow using the element so as to be able to degrade from webp to jpg on devices that are not yet webp capable.
I’m seeing that we can add a webp image to the Resources area but can not drag it onto the stage. Nor can we select a .webp file when using the add image area.
Is this something in development or is there a special way to get a webp image on the stage?
Is there a way to use the ‘picture’ element in Hype, specifying multiple images to downgrade in browsers lacking webp support?
Other than the couple browsers that do not support webp (yet), it is becoming more relevant as website performance becomes a more critical metric for SEO.
SEO is so much more competitive today and being able to serve up both different size images based on a viewport size as well as using formats such as webp is becoming critical.
So rather than just focusing on Responsive CSS websites, @media conditional cases and using more efficient image formats is forcing many of us to abandon common prior technogies and search out new methods. Possibly, Hype would want to be one of the options.
On this same topic, we are getting penalized for using traditional lightbox slideshows that use an anchor link to a image over some other method. For example, if you have a website that has many linked slideshows, from an SEO perspective, you might be presenting your website as having a large percentage of links to images which takes away from your other, more critical links. I’m having to use a no-follow attribute but still looking for other resouces which brings me back to Hype.
Yes, your reference from css-tricks is exactly what I use in static applications. Webp is pretty incredible for compressed image formats. I have some other examples here. 1200% improvement over png.
Regarding the SEO it's not a direct penalty but a notice from SEM Rush on how these links delute other, more relative links. They are noting it may be a sign of poor archtecture but I'm more concerned of taking focus away from intended internal back links. The nofollow attribute helps but then excludes those image from being cataloged. My goal is to come up with a better slideshow where the images are based on a php array so not direct anchor links.
Thank you for the example file.
Does picturefill.js do something special? In the attached file lacking picturefill it seems browsers are happy to accept the @media attribute without the attached js file. The attached file will show either the jpg or webp file based on the viewport size which is useful as well as use the picture tag to enable browsers like safari to degrade to the png version.
Oh I didn’t mean to have that in there – left it in from some testing. It adds some nice features for responsive images based on media queries. You could pair this markup with Hype’s responsive layouts to speed up image loading for smaller layouts:
Current support is looking pretty strong. Any plans for this capability to be added to Hype, so they can be manipulated the same as any png or jpg? I'm happy we can use them already, they're just a bit more cumbersome to deal with in comparison.
That is true, you probably need to have everything in the resources' folder for these. Here is another approach that allows you to add a WebP version to your resources folder, and it switches the file dynamically if supported. You still need to create the WebP files, though.
Well, yes and no. The PNG file will never be downloaded if WebP is supported. If you mean that the ad network might decline your ad because of weight of the ZIP-file itself, that's another discussion to be had. You could always just ditch the support_format_webp() check and function and force the WebP onto the end user, but that would inherit the risk of using a relative new format on an older browser. This choice cannot be avoided even if Hype would support it native.
My thoughts are to use WebP images only (with no fallback) within the display ads, served locally from the packaged ad. I don't plan on using this in every ad produced, but I'm thinking of trying this out for image-heavy ads that would otherwise be impossible to fit within ad server specs. Safari is the only browser support that gives me pause.
If I wanted to use fallback images for when WebP isn't supported, I feel like ad servers would be more accepting of CDN delivery rather than packaging all images, knowing all wouldn't be served. I've run into instances where they count static backup images as part of the total K-weight, which makes zero sense.
I know that support of these is no different whether Hype has native support or not. My desire is for WebP images within Hype to have the same functionality as other images.
Huh. I'm on Hype 4.1.5 and while I can drag a WebP into the resources panel, I can't get them onto the stage. Trying another way and using Insert > Image from the menu, WebP files are greyed out...
How'd you do that?
Pretty sure Hype is using an allowed type by extension name rather than encoding as I just changed a webp extension to .jpeg and it let it in but could not parse it correctly.
Did the same with a jpeg-> webp and it was blocked.
I dragged the WebP image directly into the stage. Seems like it is not checking types in that case? I am also on 4.1.5 (728) Professional Edition. It even works when I drag WebP into Resources. I need to turn off image optimization as it would convert to jpg on export.