Make WordPress Core

Opened 14 years ago

Closed 11 years ago

#13411 closed enhancement (fixed)

Add support for transparancy in wp_crop_image

Reported by: ocean90's profile ocean90 Owned by:
Milestone: 3.5 Priority: normal
Severity: normal Version:
Component: Media Keywords:
Focuses: Cc:


If you want to crop an image which is transparent, e.g. PNG, the background will be black. The reason is imagejpeg().
Add a new bool parameter, if it's true then use imagepng().

See also #13231.

Attachments (1)

transparancy.patch (1.7 KB) - added by ocean90 14 years ago.

Download all attachments as: .zip

Change History (6)

#1 @nacin
14 years ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Triage to Future Release

#2 @ocean90
13 years ago

  • Cc has-patch removed

#5 @markoheijnen
11 years ago

  • Keywords needs-patch removed
  • Milestone changed from Future Release to 3.5
  • Resolution set to fixed
  • Status changed from new to closed

Fixed in #6821. Crappy for GIF's under GD. See #13461

Note: See TracTickets for help on using tickets.