WordPress.org

Make WordPress Core

Opened 10 years ago

Closed 7 years ago

#13411 closed enhancement (fixed)

Add support for transparancy in wp_crop_image

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

Description

If you want to crop an image which is transparent, e.g. PNG, the background will be black. The reason is imagejpeg().
Idea:
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 10 years ago.

Download all attachments as: .zip

Change History (6)

#1 @nacin
10 years ago

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

#2 @ocean90
9 years ago

  • Cc has-patch removed

#5 @markoheijnen
7 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.