Most active commenters
  • mrheosuper(6)
  • Xss3(4)
  • mystifyingpoi(3)

←back to thread

A new PNG spec

(www.programmax.net)
672 points bluedel | 29 comments | | HN request time: 1.964s | source | bottom
Show context
LeoPanthera ◴[] No.44373778[source]
> I know you all immediately wondered, better compression?. We're already working on that.

This worries me. Because presumably, changing the compression algorithm will break backwards compatibility, which means we'll start to see "png" files that aren't actually png files.

It'll be like USB-C but for images.

replies(11): >>44373790 #>>44373796 #>>44373928 #>>44373937 #>>44374139 #>>44374147 #>>44374842 #>>44375132 #>>44375261 #>>44375615 #>>44380021 #
1. mrheosuper ◴[] No.44374139[source]
Does usb-c spec break backward compatibility ?, a 2018 macbook work perfectly fine with 2025 usb c charger
replies(5): >>44374198 #>>44374221 #>>44374310 #>>44374340 #>>44374966 #
2. techpression ◴[] No.44374198[source]
I don’t know if it’s the spec or just a plethora of vendors that ignores it, but I have many things with a USB-C port that requires USB-A as source. USB-C to A to C works, yay dongles, but not just C to C. So maybe it’s not really breaking backwards compatibility, just a weird mix of a port and the communication being separate standards.
replies(2): >>44374252 #>>44374411 #
3. danielheath ◴[] No.44374221[source]
Some things don't work unless you use the right kind of USB-C cable.

EG your GPU and monitor both have a USB-C port. Plug them together with the right USB cable and you'll get images displayed. Plug them together with the wrong USB cable and you won't.

USB 3 didn't have this issue - every cable worked with every port.

replies(1): >>44374244 #
4. mrheosuper ◴[] No.44374244[source]
That is not backward compatible problem. If a cable that does 100w charging when using pd2.0, but only 60w when using with pd3.1 device, then i would agree with you.
replies(1): >>44374298 #
5. mrheosuper ◴[] No.44374252[source]
because those usb-c ports do not follow the spec. If they had followed the spec from 1st day there would be no problem even now.
6. yoz-y ◴[] No.44374298{3}[source]
The problem is not backward compatibility but labeling. A USB-C cable looks universal but isn’t. Some of them just charge, some do data, some do PD, some give you access to high speed. But there is no way to know.

I believe the problem here is that you will have PNG images that “look” like you can open them but can’t.

replies(4): >>44374367 #>>44374387 #>>44374393 #>>44374432 #
7. mystifyingpoi ◴[] No.44374310[source]
Yeah, I also don't think they've broken backwards compat ever. Super high end charger from 2024 can charge old equipment from 2014 just fine with regular 5V.

What was broken was the promise of a "single cable to rule them all", partly due to manufacturers ignoring the requirements of USB-C (missing resistors or PD chips to negotiate voltages, requiring workarounds with A-to-C adapters), and a myriad of optional stuff, that might be supported or not, without a clear way to indicate it.

8. ◴[] No.44374340[source]
9. mrheosuper ◴[] No.44374367{4}[source]
the parent said "changing the compression algorithm will break backwards compatibility", which i assume is something works now won't work in the future. The usb-c spec is intentionally trying to avoid that.
replies(1): >>44374409 #
10. mystifyingpoi ◴[] No.44374387{4}[source]
Cable labeling could fix 99% of the issues with USB-C compat. The solution should never be blaming consumer for buying the wrong cable. Crappy two-wire charge-only cables are perfectly fine for something like a night desk lamp. Keep the poor cables, they are okay, just tell me if that's the case.
replies(3): >>44374559 #>>44374654 #>>44381220 #
11. globular-toast ◴[] No.44374393{4}[source]
Some aren't even USB. Thunderbolt and DisplayPort both use USB-C too.
replies(1): >>44374893 #
12. danielheath ◴[] No.44374409{5}[source]
Today, I can save a PNG file off a random website and then open it.

If PNG gets extended, it's entirely plausible that someone will view a PNG in their browser, save it, and then not be able to open the file they just saved.

There are those who claim "backwards compatibility" doesn't cover "how you use it" - but roughly none of the people who now have to deal with broken software care about such semantic arguments. It used to work, and now it doesn't.

replies(3): >>44374443 #>>44374628 #>>44374663 #
13. fragmede ◴[] No.44374411[source]
it's vendors just changing the physical port but not updating the electronics. specifically, a 5.1kΩ pull-up resistors on the CC1 and/or CC pins is needed on the host (was usb-a) side in order for the c to c cable to work.
14. voidUpdate ◴[] No.44374432{4}[source]
That's not just an issue with usb-c. normal usb a and b cables can have data or no data depending on how stingy the company wants to be, and you can't know until you test it
replies(1): >>44374886 #
15. johnisgood ◴[] No.44374443{6}[source]
This is what I fear, too.

Do they mention which C libraries use this spec?

16. ay ◴[] No.44374559{5}[source]
Same thing with PNG. Just call the format with new additions it PNGX, so the user can clearly see that the reason their software can’t display the image is not a file corruption.

This is just pretending that if you have a cat and a dog in two bags and you call it “a bag”, it’s one and the same thing…

17. mrheosuper ◴[] No.44374628{6}[source]
which is what usb-c spec has been avoiding so far. Even in USB4 spec, there are a lot of mentioning the new spec should be compatible with TB3 devices.

USB-C spec is anything but breaking backward compatible.

18. lelanthran ◴[] No.44374654{5}[source]
> Cable labeling could fix 99% of the issues with USB-C compat.

Labelling is a poor band-aid on the root problem - consumer cables which look identical and fit identically should work wherever they fit.

There should never have been a power-only spec for USB-C socket dimensions.

If a cable supports both power and data, it must fit in all sockets. If a cable supports only power it must not fit into a power and data socket. If a cable supports only data, it should not fit into a power and data socket.

It is possible to have designed the sockets under these constraints, with the caveat that they only go in one way. I feel that that would have been a better trade-off. Making them reversible means that you cannot have a design which enforces cable type.

replies(2): >>44374908 #>>44374974 #
19. fc417fc802 ◴[] No.44374663{6}[source]
The alternative is the website operator who wants to save on bandwidth instead adopts JXL or WEBP or what have you and ... the end user with old software still can't open it.

It's a dichotomy. Either the provider accommodates users with older software or not. The file extension or internal headers don't change that reality.

Another example, new versions of PDF can adopt all the bells and whistles in the world but I will still be saving anything intended to be long lived as 1/a which means I don't get to use any of those features.

20. Xss3 ◴[] No.44374886{5}[source]
You can get pretty good guesses just by feel and length. Tiny with a super thin cable? Probably charge only.
21. Xss3 ◴[] No.44374893{5}[source]
Thunderbolt meets usbc specs (and exceeds them afaik), so it is still usb...
22. Xss3 ◴[] No.44374908{6}[source]
So since my vape (example, i dont vape) has a power and data slot for charging and firmware updates, i should be limited to only using dual purpose cables day to day rather than a power only cable?
replies(1): >>44375182 #
23. zirgs ◴[] No.44374966[source]
Yeah - it's a mess. Some devices only charge with a charger that supports PD. Some other devices need a charger WITHOUT PD support.
replies(1): >>44383588 #
24. mystifyingpoi ◴[] No.44374974{6}[source]
> If a cable supports only power it must not fit into a power and data socket

That's even more confusing than the current state of affairs. If my phone has power and data socket, then I cannot use power only cable to only charge it? Presumably with the charger that has power only socket. So I need a cable with two different ends anyway. Just go micro-USB at this point :)

Funnily enough, there is a 100% overkill way to solve such issues. Just use super expensive certified TB cables. Well... plus a A-to-C adapter for noncompliant devices, I guess.

25. lelanthran ◴[] No.44375182{7}[source]
> So since my vape (example, i dont vape) has a power and data slot for charging and firmware updates, i should be limited to only using dual purpose cables day to day rather than a power only cable?

Well, yes.

Why can't you use a power+data cable for the vape (or whichever appliance takes both)? What's the deal-breaker here?

The alternative is labeling, or plugging cables in to see if they do what you want them to do.

Both are a poor user interface.

replies(1): >>44381492 #
26. kevin_thibedeau ◴[] No.44381220{5}[source]
Two wire cables are not in the specification, just like A-to-A cables aren't. The whole charging above 100mA with resistor hacks wasn't in the standard either until they had to grandfather it in. The implementers forum isn't responsible for non-members breaking their spec.
27. Xss3 ◴[] No.44381492{8}[source]
Is the same true for my laptop? Or soldering plate? Both take over 150w of power. Buying a power and data cable is expensive compared to just power, and the length of cable is severely limited...or the data speed impaired significantly. How slow does the data have to be for it to be non compliant?
28. mrheosuper ◴[] No.44383588[source]
If those devices follow the spec, they dont need charger without PD support.

You don't follow spec, you're on your own.

replies(1): >>44423670 #
29. zirgs ◴[] No.44423670{3}[source]
Yes, but, unfortunately - devices like that exist.