Search found 11 matches

by cjmi
2012-06-30T12:35:06-07:00
Forum: Bugs
Topic: Can't create new TIFF in LAB Colorspace
Replies: 1
Views: 3444

Can't create new TIFF in LAB Colorspace

The code below creates out.tif identify -verbose out.tif (using 6.7.8-0 w/ HDRI configure option) states out.tif is in sRGB colorspace. Sorry if I'm doing it wrong. #include <list> using namespace std; #include "Magick++.h" using namespace Magick; int main(int argc, char** argv) { Initiali...
by cjmi
2012-06-30T00:41:29-07:00
Forum: Bugs
Topic: [LAB Space] Avg Color via 1x1 Scaling Bug Due to Forgot Sign
Replies: 3
Views: 6207

[LAB Space] Avg Color via 1x1 Scaling Bug Due to Forgot Sign

ImageMagick 6.7.8-0, libtiff 4.0.2. In the LAB colorspace, .green() values of [0, 0.996109] are translated into A* values by multiplying the 0-1 decimals by 256 (possibly 255, but I think 256), and if that is 128 or more, subtracting 256. Therefore, the A* values are translated into [0, -0.996096]. ...
by cjmi
2012-06-29T23:33:24-07:00
Forum: Users
Topic: How to create a tiff file in lab colorspace
Replies: 0
Views: 3143

How to create a tiff file in lab colorspace

Running into a lot of problems using LAB. Is LAB implementation still in progress, or am I doing it wrong? If in progress, is there another library I should consider for now? identify -verbose out.tif <-- 6.7.8-0 w/ HDRI ..... Colorspace: sRGB ..... :shock: :( :? #include <list> using namespace std;...
by cjmi
2012-06-29T19:24:04-07:00
Forum: Users
Topic: Traditional crop/delete other pixels, rather than hiding pix
Replies: 5
Views: 8980

Re: Traditional crop/delete other pixels, rather than hiding

There's another way to go about it. Is there a way to create an Image, from a given area in a different Image? That (should) avoid the hidden pixel problem I'm in now. ... Right now I'm doing: Image croppedImage = uncroppedImage; croppedImage.crop(Geometry(60, 60, startX, startY)); ... Which is sort...
by cjmi
2012-06-29T19:20:09-07:00
Forum: Users
Topic: Traditional crop/delete other pixels, rather than hiding pix
Replies: 5
Views: 8980

Re: Traditional crop/delete other pixels, rather than hiding

You rock. (You have ninja fast responses.) Truth is I'm using Magick++ in c++, just was using convert to test why things were going wrong. Tried adding "-repage 0+0" to convert options, didn't change anything. For in c++, I searched for the phrase "repage" in /usr/local/include/I...
by cjmi
2012-06-29T18:58:38-07:00
Forum: Users
Topic: Canvas wrap transformation
Replies: 44
Views: 98925

Re: Canvas wrap transformation

Lenscape, if you get this working, would you be willing to share the code?

I wouldn't use it exactly, just as a reference, actually. But, I need to do something similar.
by cjmi
2012-06-29T18:56:49-07:00
Forum: Users
Topic: Traditional crop/delete other pixels, rather than hiding pix
Replies: 5
Views: 8980

Traditional crop/delete other pixels, rather than hiding pix

So, I upgraded from ImageMagick 6.2.8/libtiff 3.8.2 to ImageMagick 6.7.8-0/libtiff 4.0.2. On my old version, "convert someTiff.tif -crop 60x60+123+231 someTiffCropped.tif" did a traditional crop, which cut out a 60x60 pixel area from a large someTiff.tif file, at the 123, 231 coordinate. O...
by cjmi
2012-06-28T21:18:16-07:00
Forum: Users
Topic: Trying to open a 16 bit TIFF LAB colorspace with Magick++
Replies: 3
Views: 6365

Re: Trying to open a 16 bit TIFF LAB colorspace with Magick+

Oops, thought I included that, but just included the libtiff version (3.8.2.) ImageMagick, -c++, -c++-devel, -devel are all on 6.2.8, so I'm a ways back, and looks like I'll have to upgrade. By "The IM conversion between sRGB and LAB was only fixed"... Do you mean there was an issue displa...
by cjmi
2012-06-28T21:05:15-07:00
Forum: Users
Topic: Getting average LAB color from a 16 bit TIFF LAB file
Replies: 2
Views: 5605

Re: Getting average LAB color from a 16 bit TIFF LAB file

... I see a definition of "-colorspace" as "to change the way IM stores the colors of an image within memory... So I'm thinking I need to get a working LAB file, and then I won't need the image.colorspace() call.
by cjmi
2012-06-28T20:56:11-07:00
Forum: Users
Topic: Getting average LAB color from a 16 bit TIFF LAB file
Replies: 2
Views: 5605

Getting average LAB color from a 16 bit TIFF LAB file

I have a 16 bit TIFF LAB file. QUESTION 1 - Is this the best way for me to find out the average color in LAB colorspace? Since the initial TIFF is already in LAB colorspace, I want to use a method that just averages the colors in LAB -- without jumping through RGB at all. I want to avoid any type of...
by cjmi
2012-06-28T20:40:59-07:00
Forum: Users
Topic: Trying to open a 16 bit TIFF LAB colorspace with Magick++
Replies: 3
Views: 6365

Trying to open a 16 bit TIFF LAB colorspace with Magick++

Trying to open a Photoshop CS6 saved TIFF file with Magick++ generates "wrong data type 7 for RichTIFFIPTC; tag ignored. TIFFReadDirectory". I tried using xnView to remove IPTC data, and I can successfully open that file with Magick++, however xnView converts 16 bit TIFFs to 8 bit, and als...