News for hackers. Stuff that matters.
Re:iPhone 16 could let you shoot in JPEG-XL by M-Valentino on Friday August 23, 2024 @11:33PM (#41335348)
I want a phone that lets you shoot PNG
Re:iPhone 16 could let you shoot in JPEG-XL by The_Colonel on Friday August 23, 2024 @11:39PM (#41335385)
Why? PNG is really a bad format for photos (simply was not designed for this use case)

JPEG-XL has a lossless mode if that's what you're after ...

Re:iPhone 16 could let you shoot in JPEG-XL by M-Valentino on Saturday August 24, 2024 @01:20AM (#41335841)
I like PNG's lossless compression. I feel like PNG was a really bad format back when hard drives were 100GB, but now storage is so cheap. I didn't know JPEP-XL had a lossless mode. Other than that format, I don't know of any other formats that offer lossless compression other than bitmap and TIF. You can't really use TIFs in many contexts and bitmaps have no compression at all.
Re:iPhone 16 could let you shoot in JPEG-XL by TaylorAlexander on Saturday August 24, 2024 @01:53AM (#41335966)
RAW is the correct format for uncompressed images, and you can shoot RAW on iphone: https://support.apple.com/en-us/119916

> I feel like PNG was a really bad format back when hard drives were 100GB

You talk about "hard drive" space even though phones don't have hard drives (more to the point, even if you transfer photos to your desktop they will start on your phone and take up space). The iPhone 15 base model comes with 128GB storage. Uncompressed images take up huge amounts of space and that still affects network transfer times, phone storage, cloud storage, etc.

Anyway you can shoot RAW on your phone right now, which is what you are looking for. Still, it is a niche application because of the storage required.

Re:iPhone 16 could let you shoot in JPEG-XL by eviks on Saturday August 24, 2024 @03:30AM (#41336329)
Storage isn't cheap, check the iPhone storage upgrade prices

And apps have grown in size, and video/photo size has grown

Re:iPhone 16 could let you shoot in JPEG-XL by dark__paladin on Sunday August 25, 2024 @12:25AM (#41344374)
"Storage isn't cheap" "check the [Apple product] upgrade prices"

Under this logic, RAM is still $100 / 8GB, a factor of ~4x greater than non-Apple prices. A similar coefficient is true for their SSD storage pricing.

Source: Mac Pro configuration page https://www.apple.com/shop/buy-mac/mac-pro/tower

Re:iPhone 16 could let you shoot in JPEG-XL by eviks on Sunday August 25, 2024 @12:31AM (#41344400)
Yes, under this logic you can't ignore the reality of a large % of users when making sweeping claims about the reality of all users.

Also don't forget the fact that many devices can't be storage-upgraded, so this pushes the actual cost of extra storage even higher

Re:iPhone 16 could let you shoot in JPEG-XL by bobbylarrybobby on Saturday August 24, 2024 @01:24AM (#41335854)
I can't imagine a PNG actually having a good compression ratio for photographic data. Better at that point to just shoot RAW.
Re:iPhone 16 could let you shoot in JPEG-XL by nanidin on Saturday August 24, 2024 @03:21AM (#41336283)
Why not?
Re:iPhone 16 could let you shoot in JPEG-XL by tourmalinetaco on Saturday August 24, 2024 @03:36AM (#41336353)
Because of how PNG compresses images. The high detail will lead to large images, and at that point it’d be easier to save the RAW output of the camera, offload the images, and do any compression later.
Re:iPhone 16 could let you shoot in JPEG-XL by bobbylarrybobby on Saturday August 24, 2024 @09:43AM (#41338263)
Because png compression is optimized for images with few distinct colors and long runs of the same color. Photographs are not like that.
Re:iPhone 16 could let you shoot in JPEG-XL by dchest on Saturday August 24, 2024 @02:35AM (#41336130)
WebP also has a lossless variant, and it compresses much better than PNG.
Re:iPhone 16 could let you shoot in JPEG-XL by t-writescode on Friday August 23, 2024 @11:42PM (#41335403)
PNG is designed for images that don't change colors between each pixel very often. That's how its compression algorithm works.

Images, by their nature, are far more fluid, which is why a FFT-based compression algorithm, like the one in jpegs, makes sense for photos.

Re:iPhone 16 could let you shoot in JPEG-XL by metaphor on Saturday August 24, 2024 @01:14AM (#41335819)
> FFT-based compression algorithm, like the one in jpegs

Nit: DCT-based

Re:iPhone 16 could let you shoot in JPEG-XL by M-Valentino on Saturday August 24, 2024 @02:18AM (#41336070)
My idea for wanting PNG encoding is that they have lossless compression, and that the other common format that preserves details is bitmap, which has no lossless compression. At least PNG might compress photos somewhat. The web is plagued with images that have been resaved over and over that have JPEG degradation. I did not know JPG-XL had a lossless format so that's promising imo. But JPG-XL isn't supported in many browsers.
Re:iPhone 16 could let you shoot in JPEG-XL by xnyan on Saturday August 24, 2024 @12:24AM (#41335625)
Unless you'll exclusively use it for pictures of text intended for web consumption, you don't.