Ticket #3076 (closed defect (bug): wontfix)

Opened 5 years ago

Last modified 5 years ago

Imageantialias doesn't support PNG. Needs either an implementation or test to skip PNG

Reported by: drmike Owned by: anonymous
Priority: normal Milestone:
Component: Administration Version:
Severity: normal Keywords:
Cc:

Description

From the  WPMU trac but resolution was to bring it over here. Donncha says this is an issue stemming out of the WP core.

You're going to have to forgive me on this one. I know little about GD and how php generates image files. :)

Per this thread in the forum:

 http://mu.wordpress.org/forums/topic.php?id=1652

I'm getting that error when I try to upload a *.png file. I gather that that function 'imageantialias' has some issue with *.PNGs but there appears not be any any error check for them in that function before it hits that line.

I do know that if it skips lines 867-8 of the WPMU file wp-admin/admin-functions.php (ie I comment it out), it uploads fine but a thumbnail is not generated. That might explain the occasional "No thumbnail" and the line is crossed out issue we get on occasion over on the WP.com forums. I don't remember anyone ever mentioning what file type they are trying to use when they get that error. (And we all know how hard it is to drag details out of folks.)

Is this a defect? Sounds like we need to do some file type checking.

Hope this helps, -drmike

Change History

If you have a transparent or alpha based image, it's going to bomb. It doesn't have to be a png that messes up.

  • Status changed from new to closed
  • Resolution set to wontfix

No traction in almost a year, so closing as wontfix.

Feel free to re-open it if you have additional information/suggestions/patches/...

Note: See TracTickets for help on using tickets.