ImageMagick / ImageMagick/ImageMagick
Using `-define tiff:alpha=associated` results in modified semi-transparent areas
Open
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 17.5k
- Forks
- 1.7k
- Avg merge
- 10h 17m
- Merged PRs (30d)
- 28
Description
ImageMagick version
7.1.0-60
Operating system
Windows
Operating system, version and so on
Windows 11
Description
There is already a longer discussion about it: https://github.com/ImageMagick/ImageMagick/discussions/2839
The short version:
- Not using
-define tiff:alpha=associatedresults in the correct output, but unfortunately Adobe InDesign does not handle the background as transparent in that case (Photoshop and Gimp do) - Using
-define tiff:alpha=associatedmakes the background transparent, but modifies the semi-transparent areas of the image - There is a flag in Gimp when exporting an image as a TIFF which seems to have the same function as the IM define and it gives the correct output without any modifications to semi-transparent pixels in both cases
Steps to Reproduce
- Run
magick convert original.png -define tiff:alpha=associated associated.tiff - Semi-transparent pixels are less white than in the original image
Images
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with magick convert original.png -define tiff:alpha=associated associated.tiff and compare the semi-transparent pixels with the original. Read discussion #2839 for the existing context and use the GIMP behavior described there as the reference; done means associated alpha works for InDesign without modifying semi-transparent areas.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100