Opened 3 years ago

Closed 3 years ago

#12577 closed defect (bug) (duplicate)

Wrong thumbnails created - transparency

Reported by: pavelevap Owned by: apeatling
Priority: normal Milestone:
Component: Media Version: 2.9.2
Severity: normal Keywords:
Cc: pavelevap@…, apeatling

Description

When I upload attached .png picture, wrong thumbnails are created (black and white lines etc.) It is probably related to transparency...

Attachments (1)

Kampa.png (30.7 KB) - added by pavelevap 3 years ago.

Download all attachments as: .zip

Change History (12)

comment:1   dd323 years ago

  • Milestone changed from 2.9.3 to 3.0

See Also: http://www.php.net/manual/en/function.imagecopyresampled.php#93166

basically, the GD resize functions do not handle transparency.

Setting to 3.0 at present, This is unlikely to be patched for a 2.9 release.

  • Owner set to apeatling
  • Status changed from new to assigned

I'm almost certain that this is because all thumbnails are created as JPG's regardless of their original file type, but I'll start digging to confirm.

I take that back, my png tests seemed to thumbnail fine, but I could reproduce the issue with the attached image.

Related? #11671

@nacin - Yes, seems to be the same problem, it's to do with the color profile of the image.

It's using a "20% Dot Gain" profile. If I open the image in Photoshop and remove the profile then the thumbnail works fine.

  • Cc apeatling added

Punt to 3.1? This should be fixed once #11671 is dealt with.

  • Milestone changed from 3.0 to 3.1
  • Milestone changed from Awaiting Triage to Future Release
  • Milestone Future Release deleted
  • Resolution set to duplicate
  • Status changed from assigned to closed

Actually, I'm just going to mark this as a dup of #11671

Note: See TracTickets for help on using tickets.