Home » Your Groups » Bugs, Errors and Suggestions » PNG format images

PNG format images

 

Sensual Art

By Sensual Art, 1729448158

On the Image upload guidelines, linked from the Upload images page, I'm told I can upload PNG images.

PNG images have two specific advantages over JPG:

  1. They're lossless
  2. They support transparency.

I just tried to upload a PNG because I wanted to take advantage of this second benefit, basically so I could create a non-rectangular frame for my image, albeit one which would sit within PP's rectangular drop-shadow frame.

Having uploaded it, I found the PP had converted it to a JPG, with black areas where it should have been transparent.

Please can we have proper support for PNG images, so we can get those benefits?  Or, of course, WEBP, which would achieve much the same end.

ANDY00 said, 1729448749

I think you’re allowed to upload JPG or PNG files to your portfolio, but I don’t believe it can display PNGs directly—the framework likely converts them automatically. I could be wrong, but PNG file sizes are much larger than compressed JPGs, which might be why JPG is the preferred format for display.

I do find it strange that there’s a restriction on image size, especially since I was recently told that PP has no limit on server space at all.

Edited by ANDY00

MidgePhoto said, 1729448796

There must be some HEIFs around, I suspect.

But by the time we upload something at 1980px wide it has surely been extensively processed.

waist.it said, 1729453593

Whilst most GUI browsers have supported png and webp for many years, sadly full support for these formats is somewhat lagging behind the times on many sites. I use png and webp quite a lot for my own projects these days - especially animated and lossless webp. These formats work fine in all modern browsers and on my own sites. However they become somewhat more problematic when one wants to upload them to other people's sites. :-(

-sp●●n- said, 1729457496

Jpeg XL is likely the main replacement for webp, png and jpeg. Has Jpeg and google behind it, is lossless and lossy and will out compress jpeg (2/3rds better) and webp.

Also can go Jpeg >> Jpeg XL   and then back again without quality loss.

Edited by -sp●●n-

waist.it said, 1729466439

-sp●●n- said

Jpeg XL is likely the main replacement for webp, png and jpeg. Has Jpeg and google behind it, is lossless and lossy and will out compress jpeg (2/3rds better) and webp.

Also can go Jpeg >> Jpeg XL   and then back again without quality loss.

Edited by -sp●●n-


JPEG XL (*.jxl) has the potential to be an excellent, perhaps even the ultimate image format. In addition to being supported by the Joint Photographic Experts Group, it is also supported by the IEC and ISO. And just as important from my perspective, it is a truly open standard.

Problem is that as of right now, hardly any web browser seems to support it. Out of curiosity, I just tried the latest versions of the following browsers, all from the regularly updated Debian 'testing' repo - except Brave and Opera, which come from the repositories on the developers' sites.

  • Brave Version: 1.71.114 based on Chromium: 130.0.6723.58 (Official Build) (64-bit)
  • Chromium Version: 129.0.6668.89 (Official Build) built on Debian GNU/Linux trixie/sid (64-bit)
  • Falkon Application version 24.08.1 QtWebEngine version 6.6.2
  • Firefox Developers Edition: 132.0b9 (64-bit)
  • Firefox: ESR 128.3.1esr (64-bit)
  • Konqueror Version: 22.12.3 (in "web browser mode", though it will display *.jxl files in "file manager mode")
  • Opera Version: 114.0.5282.102

None of these would successfully open the image on the jpegxl.info test page. YMMV, of course...

In terms of software support, I don't think there is any official *.jxl support in Microsoft Windows at all at the moment - certainly if the Wikipedia is to be believed. Fortunately on Debian (and its various derivatives), support for new open standards is generally pretty swift. The latest libjxl v0.9.2-10 (the code library required to encode and decode JPEG XL ISO/IEC 18181 files on Unix-like systems) has just made it to the Debian 'testing' repositories and I have successfully opened *.jxl files without issue on the following applications...

  • Gimp Beta v2.99.18 (opens and exports to *.jxl)
  • KDE Gwenview v23.04.2 (default KDE iage browser)
  • Dolphin file manager v23.08.1 (in its image preview feature)
  • EOG Eye of Gnome v47.0 (default Gnome desktop image viewer)
  • Krita v5.1.5 and v5.2.6
  • Konqueror Version: 22.12.3 (but only in "file manager" mode)

For those who might be interested in trying the new image format on your chosen operating system, I have placed a JPEG XL file, created in GIMP via libjxl, in the downloads area on my site. Feel free to download and play with it, if you wish. In fact I'd be interested to learn how you get on with it...

The file is "lossless"1920 x1080 pixels, 324.4 KiB (332,229 bytes) and is "safe for work". :-)



Sensual Art said, 1729466756

waist.it said

For those who might be interested in trying the new image format on your chosen operating system, I have placed a JPEG XL file, created in GIMP via libjxl, in the downloads area on my site. Feel free to download and play with it, if you wish. In fact I'd be interested to learn how you get on with it...

The file is "lossless"1920 x1080 pixels, 324.4 KiB (332,229 bytes) and is "safe for work". :-)

Error 403.

waist.it said, 1729466873

Fixing it now :-)

waist.it said, 1729467314

Sensual Art Fixed. Stupid rookie permissions error on my part. My apologies. Please try it now. :-)

Sensual Art said, 1729467685

waist.it said

Sensual Art Fixed. Stupid rookie permissions error on my part. My apologies. Please try it now. :-)

Photoshop 2024 (on Windows 10) opens it just fine.

As you said, though, Chrome & Firefox fail, so that's a vast majority of web browser users.

It might be the best format yet devised, but if it's not yet supported on most platforms then it's not where we want to go, hence my request that at least PNG and WEBP get supported here in PP, rather than getting nerfed by conversion to JPG.

waist.it said, 1729469584

Sensual Art said

waist.it said

Sensual Art Fixed. Stupid rookie permissions error on my part. My apologies. Please try it now. :-)

Photoshop 2024 (on Windows 10) opens it just fine.

As you said, though, Chrome & Firefox fail, so that's a vast majority of web browser users.

It might be the best format yet devised, but if it's not yet supported on most platforms then it's not where we want to go, hence my request that at least PNG and WEBP get supported here in PP, rather than getting nerfed by conversion to JPG.


Thanks for the info.

The interesting browser in my tests was KDE Konqueror. This application is little known outside "penguin world" but it is a very interesting browser because not merely is it based on the same browser engine as Safari, and packed with features that require "extensions" in most other browsers, it is also a very competent file manager c/w extensive ftp/sftp/fish/sshfs functionality. The fact that its file management component will display the file, whereas the browser part will not, suggests to me that browser support is probably not far off, certainly on my platform of choice. Clearly (almost) all the component parts are already in place.

But like you say, without widespread support across all platforms, and quickly, the format's dead in the water. Time will tell, I guess...

waist.it said, 1729471483

Further to my last, seems that jxl support can be switched-on in some browsers. Can't do it in Chromium - well not the version that ships with Debian 'testing', anyway. But it apparently it can be done on the nightly builds of Firefox Developers. Just a simple change to about:config, for anyone who's interested in giving it a whirl. Instructions...


Sensual Art said, 1729509186

waist.it I love the irony that it's not supported in Chromium, despite Google's support! And as to why its been in the Nightly builds of Firefox for 3 years but never been made mainstream...!

The Portrait Cowboy said, 1729510091

Does the .jxl file format also support image transparency?

-sp●●n- said, 1729510291

Yes lots of questions why browser support is so lacking given the benefits and the code released many years back. It could be a chicken and egg, but has the potential to double the speed of most of web retrieval out there. Perhaps there is a worry about security behind the libraries, not fully being tested enough.

-sp●●n- said, 1729510319

The Portrait Cowboy said

Does the .jxl file format also support image transparency?


Yes, and animation.