AVIF image format support

What features would you like to see in Pixelmator Pro?
User avatar

2020-08-10 14:11:18

AVIF is the next-gen image format that will follow WebP. It has the backing of large companies, including Netflix, because it's superior to WebP in reducing the file size of JPEGs while maintaining visual clarity.

It is likely that WebP and AVIF will both become the main image formats in the coming years, and will slowly replace the use of PNG and JPEG. WebP is already on the verge of becoming a common format now that Safari 14 will support it. Thank you for adding support for WebP and I'm looking forward to being able to use it regularly with the Export for Web... feature.

Even though AVIF has a while to go before it gains support by all major browsers (Firefox added support in Canary builds, and Safari hasn't committed to adding it yet), Chrome (and Edge since it uses Blink) supports AVIF now. Unlike the Pixelmator site, which is said to have a large number of visitors that use Safari, most sites' visitors are using Chrome. And since AVIF can be used now using the <picture> element and <srcset> attribute (or via other methods), the only impediment for web designers to use AVIF is the lack of support for it in Pixelmator Pro.

Thank you for considering. Pixelmator Pro is the only image editing app I use because it's the best!

References:
- https://aomediacodec.github.io/av1-avif/
- https://reachlightspeed.com/blog/using- ... web-today/
- https://netflixtechblog.com/avif-for-ne ... 1d75675fe4
- https://www.coywolf.news/webmaster/avif ... ge-format/
- https://www.ctrl.blog/entry/webp-avif-comparison.html
- https://www.chromestatus.com/feature/4905307790639104
User avatar

2020-08-11 15:28:47

Hey Jon, thanks for a very well-referenced feature request — I've passed this on to the rest of the team!
User avatar

2020-10-06 11:12:44

Thumbs up! Avif support is much appreciated. I currently use https://avif.io/ to convert the files to avif, after I saved them with Pixelmator. It would be awesome to have an inbuilt function as well.
User avatar

2020-11-20 19:21:29

Yes. That would be absolutely perfect. Chrome has supported it since version 85.
User avatar

2020-11-22 16:06:23

I like that idea a lot. Would be amazing if Pix Pro can support that
User avatar

2020-11-22 16:15:17

Export for Web for AVIF and WebP is going to be huge for the web design/development community. I’m really looking forward to when it gets added. It will be the finishing touch for me now that Pixelmator Pro 2 has been released.
User avatar

2020-11-26 13:02:15

I believe this is now on the roadmap for the next major update. :wink:
User avatar

2020-11-26 14:06:51

by Andrius 2020-11-26 19:02:15 I believe this is now on the roadmap for the next major update. :wink:
Yes!!!

Image
User avatar

2020-12-15 16:48:14

by henshaw 2020-11-26 14:06:51
Yes!!!

Image
The beta is out - webp is now added to export for web.
Should be out soon
User avatar

2020-12-26 13:05:32

by henshaw 2020-11-22 16:15:17 Export for Web for AVIF and WebP is going to be huge for the web design/development community. I’m really looking forward to when it gets added. It will be the finishing touch for me now that Pixelmator Pro 2 has been released.
Hi,

How do you implement the picture tag?

In the several html file or on a page basis?
User avatar

2020-12-28 07:50:18

Ah, I have used the custom html Gutenberg module on a specific posts, if I do it on ab post by post basis I have to link the webp and jepg file - it is a bit much work...
have you found a different method?
User avatar

2020-12-28 15:55:39

by ResLes 2020-12-28 13:50:18 Ah, I have used the custom html Gutenberg module on a specific posts, if I do it on ab post by post basis I have to link the webp and jepg file - it is a bit much work...
have you found a different method?
If you want to upload WebP or AVIF images to WordPress, you'll have to first add the MIME type. There are different methods for this, and some may not work depending on the hosting provider. The easiest way in WordPress to do this is to install the WP Add Mime Types plugin and the extension and type via that. That's what I'm doing now for WebP. With that being said, WordPress still doesn't treat WebP images the same when you add them via the Image block.

Adding AVIF images, since they don't have the same browser support as WebP images do now, requires adding the <picture> element as you mentioned previously. That does take more work since you'll have to type it out manually using the Custom HTML block.
<picture>
	<source srcset="img/photo.avif" type="image/avif">
	<source srcset="img/photo.webp" type="image/webp">
	<img src="img/photo.jpg" alt="Description of Photo">
</picture>
That mainly just applied to posts and pages for WordPress. You would have to do that anyway if you were working on a template in a theme or creating a static site. I'm used to manually writing HTML to get my templates and pages fully optimized and using the assets and code I want.

What's nice about Pixelmator Pro now supporting WebP with Export for Web, and hopefully AVIF in the near future, is that it gives web designers/developers choices. It also makes Pixelmator Pro the best image editing option for new web standards while other competitors, including Photoshop, lag way behind. That excites your user base, which in turn gets them to tell all of their friends and colleagues about it, with me being an example of that :smile:
User avatar

2020-12-29 08:46:10

Hi,

thanks for all that. You are superb.


I have tweaked your suggestions a bit. I have tried it with the plugin and it didnt work as I had to paste some code in my wp-config file - for security reasons.

I found this article on Kinsta: https://kinsta.com/knowledgebase/sorry- ... y-reasons/

Which let me do it. I have searched for happy in config as the article is a bit out of date and pasted the code above it. It works.

I could avoid to use the wp-mine plugin as I use the php snippets plugin https://en-gb.wordpress.org/plugins/code-snippets/

This plugin I have on my website already as I host my own font to not relay on google fonts (privacy and speed reasons) and for some other tweaks so i have incorporated it.

I can switch it on and off - if I need to upload something and I can only run it in the Admin area (for security reasons)

I pasted some php code in my php snippets plugin for webp and avif upload.
// Add WebP mime type to WordPress
function webp_upload_mimes( $existing_mimes ) {
// add webp to the list of mime types
// $existing_mimes['webp'] = 'image/webp';
$existing_mimes['avif'] = 'image/avif';

// return the array back to the function with our added mime type
return $existing_mimes;
}
add_filter( 'mime_types', 'webp_upload_mimes' );
it works. So I could avoid using an additional plugin.
User avatar

2020-12-29 09:34:49

Men, I am so excited if Pix Pro can support AVIF. That would be so awesome!

jpeg = 112 kb
webp = 71 kb
avif = 18 kb (!!!)

WOW, what a speed improvement

Thanks, henshaw for making me aware of it.
User avatar

2020-12-29 16:14:10

by ResLes 2020-12-29 15:34:49 Thanks, henshaw for making me aware of it.
Thanks for making me aware of that functions.php code. I just added it and removed the MIME plugin. Works perfectly!
User avatar

2020-12-29 23:16:24

It’s great to exchange some ideas. Very prosperous.

I thought about putting the php code in the function php file.

I prefer to have a light weight code snippets plugin - in which I can put notes, run it in areas I like (fronted, backend, admin area) and switch it on and off when I like.

It’s lighter then a child theme and I can monitor the code I put in.

Have a great day
User avatar

2021-03-16 06:55:24

https://bugs.webkit.org/show_bug.cgi?id=207750

WebKit has included AVIF so the support from Apple could be sooner.
User avatar

2021-03-16 06:58:40

by Meow 2021-03-16 06:56:41 https://bugs.webkit.org/show_bug.cgi?id=207750

WebKit has included AVIF so the support from Apple could be sooner.
That’s great, I have asked in an other thread, they are working on it and it should be released in one of the next big updates.
User avatar

2022-01-29 10:24:44

@Andrius

as I have read you are planning more file formats supports in the future...

Is there a good change that AVIF support is landing this year with an update?

Thank you
User avatar

2022-03-25 08:43:50

Hi,
Do you guys have some plans for AVif support coming this or next year?
User avatar

2022-04-14 13:35:59

Hey, I came here to voice my support for @henshaw's earlier request: I would really appreciate the ability to be able to export to AVIF.
User avatar

2022-04-15 23:28:15

Hi Joost de Valk. From what I've managed to gleam from the devs, we're waiting to see how things develop with the file type for now as it seems there are still aspects relating to how AVIFs work and should be implemented that are not quite as set in stone as we'd like them to be. The plan is to add AVIF support eventually, though I'm afraid I can't give you a timeframe just yet.
User avatar

2022-07-07 20:56:23

Beta 3 of macOS Ventura and iOS 16 now support AVIF in Safari 🎉 I'm hoping this helps speed up the addition of AVIF support to Pixelmator 🙏
User avatar

2022-07-07 22:07:21

by henshaw Beta 3 of macOS Ventura and iOS 16 now support AVIF in Safari 🎉 I'm hoping this helps speed up the addition of AVIF support to Pixelmator 🙏
that’s great
User avatar

2022-07-08 11:45:53

by henshaw Beta 3 of macOS Ventura and iOS 16 now support AVIF in Safari 🎉 I'm hoping this helps speed up the addition of AVIF support to Pixelmator 🙏
I read it now. Thats cool. It is still a long way. I will implement AVIF in a couple of years and just go with webp. Much easier and faster to do with the normal WordPress tools and lazy load does the trick but would be nice to have AVIF.