[wp-trac] [WordPress Trac] #53408: png images bit depth is modified in resized images

WordPress Trac noreply at wordpress.org
Wed Aug 2 16:10:42 UTC 2023


#53408: png images bit depth is modified in resized images
--------------------------+------------------------------
 Reporter:  wpfed         |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  5.7.2
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by tgsrvrs):

 @wpfed provided the solution already, it is nothing more than adding a
 PNG8: to the resize command, like

 {{{
  convert Test.png -resize 83% PNG8:tmp.png
 }}}

 for Imagick. As he pointed out that results in slight increase of a few
 bytes because of optimization limitations but we are far from a few 100%
 that renders WP core solution as it is unusable in current state

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/53408#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list