Group Abstract Group Abstract

Message Boards Message Boards

5
|
10.8K Views
|
4 Replies
|
7 Total Likes
View groups...
Share
Share this post:

What is the logic of transparency handling by image-processing functions?

Posted 8 years ago
POSTED BY: Alexey Popkov
4 Replies
Posted 6 years ago

As for version 12.0.0, the described inconsistencies and the ImageCrop bug are still not resolved. :(

POSTED BY: Alexey Popkov
Posted 3 years ago

As for version 13.0.1, no progress so far... :(

POSTED BY: Alexey Popkov

At the moment I can just tell you that the issue is known and internal teams are looking into this. Please stay tuned for resolution. Thanks for bringing this up and taking the time to describe it.

POSTED BY: Vitaliy Kaurov
Posted 8 years ago

I can add that some basic functions seem to be simply confused by alpha channel. For example, ImageCrop can't crop:

img = Rasterize[
   Graphics[Rectangle[], PlotRange -> {{-2, 2}, {-2, 2}}, ImageSize -> 200], Background -> None]; 

ImageCrop[img] // Framed

image

One workaround is to temporarily set ColorSpace -> Automatic:

Image[ImageCrop[Image[img, ColorSpace -> Automatic]], ColorSpace -> "RGB"]

image

Dedicated thread: https://mathematica.stackexchange.com/q/20494/280

Reported to the support as [CASE:3968587].

POSTED BY: Alexey Popkov
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard