Add support to convert to avif or jxl

I'm seeing more and more of avif and jxl, although I don't know enough about the nuances to say which is better (and my guess is that it depends). Is it possible to add support to either of these for image conversion with Dopus?

Yes, with Opus 13.19. Here's an example:

Can be adapted to .avif and .jxl by changing the extensions.

Thanks for the suggestion - this works but I did notice there is a significant drop in image quality when converting from jpg to either avif or jxl even if I use -quality 100 in the command line (and the size is also larger than the source image).

So I did a bit of testing. If I use the native Magick command magick -quality 75% I get a smaller file size than the original and no drop in quality. It looks like behind the scenes, the command above is actually converting the file to a temp png file first, and then converting that to jxl. Is the double conversion causing the drop in quality, and if so is there any way to avoid that? My understanding is that jxl and avif can support smaller file sizes with the same quality, so I want to convert all my stored photos from my phone to one of those formats if I can using Dopus.

Yes, cut out the middle man and use ImageMagick directly. The basic command looks like this:

"/programfiles\ImageMagick\magick.exe" {filepath} -quality 90 {filepath|ext=avif}

Add/adjust switches/parameters like -quality as needed.

To confirm - when you say use ImageMagick directly do you mean just using the command line and not using Dopus, or are you saying that something like the example you provided should work in the external image format command?

The example above works as a button in Opus, which is probably the most convenient option. However, it will run just as well from any command line, so it really comes down to personal preference.

There's no inherent reason why converting via PNG would cause a drop in quality, since PNG is lossless. It must come down to the conversion parameters being used.

Ah ok so in that case I'd have to use a button vs the external image format option. I will give that a try ty

Thanks - When I use the external image format option I see this in the diagnostic log

Command: "C:\Program Files\ImageMagick-7.1.2-Q16-HDRI\magick.exe" "C:\Users\x\Downloads\Camera\download (63).jxl" -quality 100 C:\Users\x\AppData\Local\Temp\dop202510282117260243.png

Do you have the files the correct way around there? That looks like it would convert from jxl to png rather than vice versa.

I'm not sure - that was the suggested convert command and the output is a file with a jxl extension. Here's the exact command I'm using in external image format > command line for writing images based on the suggested command above but with the quality at 100

/programfiles/ImageMagick-7.1.2-Q16-HDRI/magick.exe %in_png% -quality 100 %out%