Group Abstract Group Abstract

Message Boards Message Boards

5
|
11.2K 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 7 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
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