Search found 5 matches

by rime
2019-01-11T08:19:24-07:00
Forum: MagickWand
Topic: Detect transparent borders
Replies: 4
Views: 3723

Re: Detect transparent borders

@fmw42 Sadly that won't be helpful since I need to have full control over what color is considered as border. I've decided to iterate through pixels of the image and stop on y if any of the pixel in line is not transparent, repeated for all borders. I've done this logic previously with GDI+, it is m...
by rime
2019-01-10T20:50:24-07:00
Forum: MagickWand
Topic: Detect transparent borders
Replies: 4
Views: 3723

Detect transparent borders

I want to get bounding rect of image without its border. MagickTrimImage seems to remove the border automatically but does it regardless of the border color and does not return information about bounding box. I believe there was a function that was removed from IM - MagickGetImageBoundingBox, it wou...
by rime
2018-12-11T12:39:20-07:00
Forum: MagickWand
Topic: "Apply" ICC profile to sRGB image in PNG format without embedding it
Replies: 3
Views: 5639

Re: "Apply" ICC profile to sRGB image in PNG format without embedding it

Solved.

Code: Select all

          MagickSetImageProfile(wand, 'ICC', msProfileRGB.Memory, msProfileRGB.Size);
          MagickProfileImage(wand, 'ICC', msProfile.Memory, msProfile.Size);
          MagickTransformImageColorspace(wand, CMYKColorspace);
Where msProfileRGB is a sRGB profile file.
by rime
2018-12-10T13:17:24-07:00
Forum: MagickWand
Topic: "Apply" ICC profile to sRGB image in PNG format without embedding it
Replies: 3
Views: 5639

"Apply" ICC profile to sRGB image in PNG format without embedding it

Input: - PNG image with sRGB color space, no ICC profile embedded - ICC profile file Expected output: - PNG image with sRGB color space, no ICC profile embedded but image colors should be "translated" with input ICC profile - the output has to be in PNG format, no quality loss is acceptable (i.e. JP...
by rime
2018-01-31T12:25:09-07:00
Forum: Digital Image Processing
Topic: Coffee mug with artwork painted on it (Snibgo's POV-Ray + IM)
Replies: 3
Views: 13487

Coffee mug with artwork painted on it (Snibgo's POV-Ray + IM)

Hello, Following this tutorial: http://im.snibgo.com/coffmug.htm the final mug image ithat I'm getting is incorrect - upper part of "painted" artwork is distorted. All of the intermediate image files seems to be correct, if compared to one in the article. I've only changed chequer pattern to white f...