You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most graphics libs (all?) can only blend premultiplied-alpha sources. Maybe out-of-scope for libspng, but since libpng has the feature, it may be worth to add it.
EDIT: Note that most PNGs in the wild are already in premultiplied alpha but there's no bit in the file to tell if that's the case. So most (all?) of the time a premultiply pass would just be a waste of energy to satisfy the spec. AFAIR the loading time in libpng doubles because of this (tested that years ago, that might have changed).
The text was updated successfully, but these errors were encountered:
Most graphics libs (all?) can only blend premultiplied-alpha sources. Maybe out-of-scope for libspng, but since libpng has the feature, it may be worth to add it.
EDIT: Note that most PNGs in the wild are already in premultiplied alpha but there's no bit in the file to tell if that's the case. So most (all?) of the time a premultiply pass would just be a waste of energy to satisfy the spec. AFAIR the loading time in libpng doubles because of this (tested that years ago, that might have changed).
The text was updated successfully, but these errors were encountered: