ImageMagick / ImageMagick/ImageMagick

Using `-define tiff:alpha=associated` results in modified semi-transparent areas

Open
#7,578 22 comments 0 reactions 0 assignees View on GitHub

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=associated results 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=associated makes 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
    image
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

original

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.