Posts:
8,199
Registered:
31-Jan-2006
|
|
|
|
Re: jAlbum 39 beta for testing
Posted:
21 Dec 25, 13:42
in response to: davidekholm
|
|
|
I just felt the addition of AVIF was an excellent case for using Variants, in case you're worried about that <1% that don't support it 
Spoken like someone who doesn't do any skin development.
I stopped including IE hacks in my CSS many years ago, and I suspect Laza has done the same. AVIF support in the browser or not, there are a bunch of other "layout" things that won't work in IE anyway.
|
|
|
Posts:
8,199
Registered:
31-Jan-2006
|
|
|
|
Re: jAlbum 39 beta for testing
Posted:
21 Dec 25, 13:51
in response to: davidekholm
|
|
|
The AVIF processing is quite a bit slower than JPG.
As for the speed, do set the speed setting higher. Try 10. Now it encodes super fast. Yes, it comes with a size and quality penalty, but fairly modest I'd say.
As for speed, make sure you also play with the various encoders (aom, SVT_AV1), in some speeds one outbeats the other.
I suspect most users will never change the default settings, whatever they are, so choose carefully. It's like a car that has three controls on the dashboard, one labeled Mode Q, one labeled Fine Tune, and one dial that goes from 1 to 17. And you tell the driver to tinker with them. He doesn't know what he's doing, or why.
The problem is that for almost everyone, it's just guesswork. They have no rational, explicable basis for choosing one setting over another. It's somewhat like the various smooth scaling options - you can read about them, but no one can tell you which one to use. And in a double-blind test, I'll wager no one can tell the difference.
|
|
|
Posts:
8,199
Registered:
31-Jan-2006
|
|
|
|
Re: jAlbum 39 beta for testing
Posted:
21 Dec 25, 14:06
in response to: wolf-skate
|
|
|
also some talk about different jpeg progressions (jpeg XL?)
I think JPEG XL is probably a non-starter. It's been around since 2018-2020, but is still not supported anywhere. Almost no browser support, no support in Windows, and support only in a few image editing apps. The people behind JPEG XL bravely tell us that it's gaining momentum. They've been saying that at least since 2022. Reminds me of: "This will be The Year of Desktop Linux, when it crashes through that 3% barrier!!!"
When it comes to what cameras will support, the Apple HEIC experience is a cautionary tale. "HEIC is better, so we're going to default to it. Sure, you can't use it anywhere other than your phone, but damn it, we're Apple, so if we standardize on it, the rest of the world will have to follow!" Hasn't happened. My advice to any owner of a new iPhone is to turn off HEIC as quickly as possible. It's just trouble. Native AVIF support would be much smarter.
seems the primary 'down side' on AVIF is code/decode time.
I'll bet you wouldn't be able to measure the difference. I'm on an aging desktop from 2019, and when I view an AVIF in the browser, it pops up instantly. I'm not sitting there waiting for it to "paint" the image. And since the AVIF file is going to be less than half the size, page loading should be faster. So, AVIF for "fast browing," and AVIF for "detail."
|
|
|
Posts:
3,916
Registered:
18-Oct-2002
|
|
|
|
Re: jAlbum 39 beta for testing
Posted:
21 Dec 25, 22:36
in response to: wolf-skate
|
|
|
xmp not important to me, but originals in jpg will also only have 8bit colour, right..so colour depth advantage does NOT? come into play when then converting into AVIF?
True.
do you think camera manufacturer will give options to shoot directly i AVIF? .. mine are to old for that I think (SOny RX100 and Fuji XT2)
I hope and expect camera manufacturers to add AVIF support soon. AVIF is an open format and backed by many software and hardware gigants: https://aomedia.org/about/members/
and hard to tell differences (for my eyes), but that author is pt sticking to webP?..seems the primary 'down side' on AVIF is code/decode time
I wouldn't say that. With modern computers the decode time is negligible. Modern codecs make use of SIMD assembly instructions to speed up the encoding and decoding process significantly.
As for WebP, we'll move away from it in favour of AVIF. Our WebP encoder suffers from memory leaks and AVIF does an even better job at compressing images than WebP.
|
|
|
Posts:
3,916
Registered:
18-Oct-2002
|
|
|
|
Re: jAlbum 39 beta for testing
Posted:
21 Dec 25, 22:38
in response to: davidekholm
|
|
|
Added b2 to the beta core location now.
Changes:
- Now keeps track of AVIF related image settings changes so you can just hit "Make album"
- When previewing and selecting "Open image in new tab", the browser will indeed do so (Added the correct MIME type for AVIF to the web server)
- The "Variants" tab will now turn green if you have any Variants added.
|
|
|
Posts:
8,199
Registered:
31-Jan-2006
|
|
|
|
Re: jAlbum 39 beta for testing
Posted:
21 Dec 25, 22:46
in response to: davidekholm
|
|
|
Our WebP encoder suffers from memory leaks and AVIF does an even better job at compressing images than WebP.
This has been the deal breaker. WebP with the best encoder might be a good candidate, but the only encoder we've been able to use hasn't been up to the task. Besides being leaky, it suffers from the "blockiness in the clouds" problem - I've got one test image that really makes it obvious. 
|
|
|
Posts:
8,199
Registered:
31-Jan-2006
|
|
|
|
Re: jAlbum 39 beta for testing
Posted:
21 Dec 25, 22:57
in response to: davidekholm
|
|
|
Changes:
Now keeps track of AVIF related image settings changes so you can just hit "Make album"
Works good.
When previewing and selecting "Open image in new tab", the browser will indeed do so (Added the correct MIME type for AVIF to the web server)
Also works good.
The "Variants" tab will now turn green if you have any Variants added.
Also works good. The variant preset formats are still using WebP, but since none of my skins supports variants, this is not exactly on my radar.
Take the rest of the weekend off. 
|
|
|
Posts:
8,199
Registered:
31-Jan-2006
|
|
|
|
Re: jAlbum 39 beta for testing
Posted:
22 Dec 25, 00:13
in response to: JeffTucker
|
|
|
Probably time to scrub WebP out of the app entirely.
But on second thought, perhaps best to wait a few releases. Otherwise, anyone who has committed to WebP as the default output would be faced with reprocessing everything. Maybe best to pop up a little "suggestion" dialog that encourages the user to switch to AVIF, and warns that WebP support will eventually be withdrawn.
|
|
|
Posts:
3,916
Registered:
18-Oct-2002
|
|
|
|
Re: jAlbum 39 beta for testing
Posted:
22 Dec 25, 13:34
in response to: JeffTucker
|
|
|
I just felt the addition of AVIF was an excellent case for using Variants, in case you're worried about that <1% that don't support it 
Spoken like someone who doesn't do any skin development. 
What's the complex thing of supporting Variants today? We have an API that generates the proper picture tag with nested img tag. Try this:
1) Select an image
2) Open system console and issue: selected.elements().thumbnails().picture()
3) Watch the output: <picture>
<source type="image/avif" srcset="thumbs/victor-garcia.avif 99w">
<source type="image/jpeg" srcset="thumbs/victor-garcia-198w.jpg 198w">
<img src="thumbs/victor-garcia.avif" width="99" height="124" alt="victor-garcia">
</picture>
(Since v38). This API doesn't return a String. It returns a jsoup Element, so you can easily manipulate it. Here's how to strip the embedded img element for instance: selected.elements().thumbnails().picture().select("img").remove()
|
|
|
Posts:
3,916
Registered:
18-Oct-2002
|
|
|
|
Re: jAlbum 39 beta for testing
Posted:
22 Dec 25, 15:14
in response to: davidekholm
|
|
|
b3 out. Changes:
- Now handles rotated AVIFs
- Variant presets will now suggest AVIF instead of WebP, (if supported)
- New imageio-avif.jar under beta location, providing faster library loading (caches previous loads in user's cache dir)
I'll likely add a warning to users who are using WebP.
|
|
|
Posts:
8,199
Registered:
31-Jan-2006
|
|
|
|
Re: jAlbum 39 beta for testing
Posted:
22 Dec 25, 16:30
in response to: davidekholm
|
|
|
What's the complex thing of supporting Variants today?
We've had this conversation before, but I'll give it one more shot.
1. The lightbox script I use doesn't know what to do with a <picture> element with multiple sources. It simply fails to detect that there's any href to an image there. The Floatbox developer is my age, and has well and truly retired, not wishing to spend his final decade on this nonsense, unlike me.
But I had this conversation with him, and his reaction was exactly the same as mine, to wit....
2. Using variants doubles, triples, or quadruples the processing time, doubles, triples, or quadruples the storage needed, and finally, the real killer, it doubles, triples, or quadruples the uploading time. Like millions of others, I have an asymmetrical connection, with uploading speed that's only one-tenth of the download speed. And using FTP, which has to make a new connection for every file, variants slow things even more. And....
3. There's just no need for them. Variants are useful for providing a different image to visitors on different devices. For example, the wide shot for a big monitor, but a more closely-cropped version of the image on a phone. But jAlbum variants can't do that.
But there's no reason to provide different sizes of the same image to different visitors. If bandwidth were limited or expensive, it would make sense. But that's not true for the vast majority of visitors. Someone visiting on a tablet or phone has virtually the same available bandwidth as someone visiting on a mammoth desktop.
"Oh, but all those extra pixels are just wasted on the mobile visitor!" Who cares?
Provide the visitor with images that are large enough for the currently common 1920x1080 monitor. Heck, with AVIF, you can afford to go HiDPI without any speed penalty, and take care of the double-density monitors out there (though I strongly suspect the difference isn't detectable - Apple went to double density to improve the appearance of small images, not of large ones).
Size variants are a ten-year-old "solution" to a ten-year-old problem. Read about the history of srcset - it was invented to deal with limited, expensive bandwidth on phones. Guess what's not true any longer.
(And don't get me started on lazy loading, which is intended to save bandwidth by not downloading images that might not be needed, but at the cost of page loading that feels like molasses to visitors with both fast and slow connections. Terrible idea.)
|
|
|
Posts:
3,916
Registered:
18-Oct-2002
|
|
|
|
Re: jAlbum 39 beta for testing
Posted:
22 Dec 25, 20:00
in response to: JeffTucker
|
|
|
Jeffs rant here
Thanks for explaining your stance on Variants Jeff. I take it, you're not sad that I had to move Variants to a sub panel then 
|
|
|
Posts:
8,199
Registered:
31-Jan-2006
|
|
|
|
Re: jAlbum 39 beta for testing
Posted:
22 Dec 25, 20:34
in response to: davidekholm
|
|
|
No, but since my skins don't support them, it was never more than a one-liner, no matter where it is.
But I think I'd move the AVIF Quality and Speed to the General tab, with an eye to eliminating the WebP Quality eventually.
And geez, while you're at it, can you please make the boxes orthogonal? Attached, my proposal from a previous jAlbum version (edit: removed - see updated version, a couple of posts below this one). A hint: "hfill."
The sharpening and quality options should be in the Scaling box, too - they don't apply to original, untouched images
The current layout is an offense against dog and man, with layout elements misaligned and floating around on the loose.
(My rule about settings panels, BTW, is to keep them under 1250x670 pixels. With the default font size in the app, that keeps them fully accessible on a typical 1366x768 laptop, or on a 1920x1080 monitor set at 150% in Windows.)
|
|
|
Posts:
8,199
Registered:
31-Jan-2006
|
|
|
|
Re: jAlbum 39 beta for testing
Posted:
22 Dec 25, 21:12
in response to: JeffTucker
|
|
|
|
On the General tab, I think I'd label the second box Scaling.
Then, first column:
Method: JComboBox for Fast/Medium/Smooth
Type: JComboBox for Standard/Blackmann-Bessel, etc.
Sharpen: JSpinner
Second column:
JPG Quality: JSpinner (let's get rid of JPEG)
AVIF Quality: JSpinner
AVIF Speed: JSpinner
WebP Quality: JSpinner
All tab-aligned, of course. Then do an "hfill" with the Image Bounds box.
ETA: A quickly slapped-together proposed Images panel, attached. Cleaner, no?
I'd take the opportunity to banish the "JPEG" spelling everywhere. After all, the scaled images that jAlbum produces are all .jpg
Edited by: JeffTucker on 22 Dec 2025, 16:29
Edited by: JeffTucker on 26 Dec 2025, 12:04 - better versions posted further down
|
|
|
Posts:
108
Registered:
5-Mar-2009
|
|
|
|
Re: jAlbum 39 beta for testing
Posted:
22 Dec 25, 21:59
in response to: davidekholm
|
|
|
Hi everyone,
jAlbum 39 is soon to be released. The big news with this version is read and write support for the superior AVIF image format. AVIF is supported by basically all browsers today and is seen as the successor to JPEG.
AVIF advantages over JPEG:
- Far better compression. Typically 1/3 or better vs JPEG
- Support for transparency
- Support for HDR
- Support for higher bit depth than 8 (finer color gradients)
- Animation support
- Support for lossless
- Open format. Not license infested
I'm super stoked about this release. What do you think?
Until I read your post I wasn't really aware of AVIF. Sounds very exciting & promising. Smaller file size, faster, better image quality - what's not to like? But I have a couple of questions. In most albums of my three websites I provide the ability of visitors to download images. I'm assuming that changing from jpeg to AVIF will result in downloaded images also being AVIF and, if that's the case, what's the effect on end users, especially if they wish add it to their phone or take it to Walmart for a print? A number of my visitors are older relatives who are quite challenged when dealing with changes & technology.
I shoot RAW with Canon and ProRAW (JPEG Lossless) with my iPhone 16 Pro. I've been converting these to JPEG prior to importing into my jAlbum project folder. Will I need to convert to AVIF or will jAlbum have that ability? Would be nice to save a step.
And a really good thing happened a few days ago ... a few updates back the ability to upload from jAlbum to my web host ceased to function properly so I've been using FileZilla. Well, FZ started acting up so I returned to jAlbum for uploads and they now work better than ever. Not sure what happened - user error on my part or cyber gremlins in the Mac but the built in loader is very nice. Thanks.
Merry Christmas to all ... and a special shout out to Jeff for developing Neptune and providing umpteen different ways for users to further customize & mod the skin. Jeff's one on one support and his ability to solve crazy problems is really special. I know he's semi-retired but I hope he doesn't retire from jAlbum/Neptune for a long time.
Take a moment to visit my primary site at this LINK. I've tried to make it user friendly for my friends/relatives who always seem to need spoon feeding. Even so, I've provided extra "features" for those interested. In the INFO section there's a link to my photo gear with samples (still a work in progress). I change the main page theme every couple of weeks or so. The first thumbnails are the most current photos and eventually are moved into the yearly highlights folders. The last two folders are direct links to my other websites. So, lots to see. Jeff - there's even an easter egg on the main page that you might enjoy - or not. It's not too hard to find.
|
|
|
|
Legend
|
|
Forum admins
|
|
Helpful Answer
|
|
Correct Answer
|
|