Search found 28 matches

by tsftd
2013-07-13T00:49:33-07:00
Forum: Magick++
Topic: LAB/LUV colorspace support
Replies: 2
Views: 8338

LAB/LUV colorspace support

Does magick++ not support LAB/LUV colorspace? Imagemagick does, but I can't find anything about LAB/LUV in the magick++ documentation, or in the forum or via google. I'm implementing several suggestions on resize techniques, such as http://www.imagemagick.org/Usage/resize/#resize_lab http://www.imag...
by tsftd
2013-07-12T05:28:46-07:00
Forum: Magick++
Topic: program crash when trimming a solid color image
Replies: 2
Views: 8115

Re: program crash when trimming a solid color image

this was indeed the problem -- me not catching the exception. much thanks for the quick response. for anyone else who has a similar problem, here is some simple code to handle it for you. *this code will continue with an empty image (0 pixels)* try{yourimage.trim();} catch(...){} *this code will ski...
by tsftd
2013-07-11T05:19:27-07:00
Forum: Magick++
Topic: program crash when trimming a solid color image
Replies: 2
Views: 8115

program crash when trimming a solid color image

note that i still haven't resolved the last issue, but am continuing development in visual studio for now. I'm writing a program that does a number of IM operations, and am using a small set of pretty much random images as a test set. I'm also using a wide variety of settings, and in one of my test ...
by tsftd
2013-07-04T05:29:47-07:00
Forum: Magick++
Topic: compiling magick++ on dev-c++
Replies: 0
Views: 7748

compiling magick++ on dev-c++

having gotten fed up with msvs, i've switched to Dev-C++ (5.4.2, orwell fork), and simultaneously am doing a rewrite of my code. Unfortunately, I can't get Magick++ to compile, and haven't really been able to pin down the issue via google or these forums. Loading the demo program flip.cpp yields: 26...
by tsftd
2012-09-15T07:15:18-07:00
Forum: Users
Topic: Size-optimizing colors in jpeg image; also cropping oddities
Replies: 11
Views: 24806

Re: Size-optimizing colors in jpeg image; also cropping oddi

actually, in my tests, blurring does not increase compression (decrease output size). keep in mind, however, that these are dealing with grayscale images (with grayscale source, such as black-and-white comics) with very, very low color counts. on the order of 4-16. so unfortunately, it doesn't have ...
by tsftd
2012-09-12T21:34:23-07:00
Forum: Users
Topic: Size-optimizing colors in jpeg image; also cropping oddities
Replies: 11
Views: 24806

Re: Size-optimizing colors in jpeg image; also cropping oddi

I finally found out what causes this behavior: posterizing introduces sharper edges between different-colored sections of the image, which in turn increases the complexity of the image for jpeg (and thus causes it to use more bits). dithering theoretically should help, since it de-sharpens the lines...
by tsftd
2012-08-10T23:53:39-07:00
Forum: Magick++
Topic: can't get quantize to match posterize
Replies: 0
Views: 6530

can't get quantize to match posterize

Ok, so I'm wanting to posterize an image via magick++, searched the api, didn't find it, searched the forum, found someone asking if magick++ has it (several years ago), but he got no answer. so, figuring that posterization was pretty similar to quantization, i started playing with that option. unfo...
by tsftd
2012-07-21T02:06:18-07:00
Forum: Magick++
Topic: CORE_RL_Magick++_.dll is missing from your computer
Replies: 0
Views: 7863

CORE_RL_Magick++_.dll is missing from your computer

So I had to reinstall windows. as we ALL know, that's a pain when you're in the middle of a project -- reinstall MSVS, make sure all your deps get put in the same place so it doesn't brake the project, etc. i got it all worked out, EXCEPT for imagemagick. the program compiles fine, but unfortunately...
by tsftd
2012-06-22T18:24:50-07:00
Forum: Users
Topic: determining offset in magick++ crop operation
Replies: 2
Views: 5210

Re: determining offset in magick++ crop operation

thank you so much!

youre a lifesaver
by tsftd
2012-06-21T06:28:29-07:00
Forum: Users
Topic: Webcam image, how to check if it's getting dark?
Replies: 5
Views: 9129

Re: Webcam image, how to check if it's getting dark?

a bit late, but you could just grab a certain number of individual pixel values (say, every 10th pixel), add the brightness together, store it, and check it against previous stored data. when the comparison shows enough "darkening" -- ie, average brightness decrease, it's getting dark. tho...
by tsftd
2012-06-21T05:44:37-07:00
Forum: Users
Topic: determining offset in magick++ crop operation
Replies: 2
Views: 5210

determining offset in magick++ crop operation

As part of a larger program, I'm using imagemagick+jpegtran to hack up a "lossless" jpeg trim operation. Essentially, I run a trim operation, take the results, and then apply it through jpegtran (after altering the math a bit to fit within jpegtran crop constraints). I am in the process of...
by tsftd
2012-01-14T15:51:45-07:00
Forum: Users
Topic: Size-optimizing colors in jpeg image; also cropping oddities
Replies: 11
Views: 24806

Re: Size-optimizing colors in jpeg image; also cropping oddi

Thanks, but that's what I meant by "And no, I'm not making the mistake of comparing the original to the output; since trim isn't lossless, I'm outputting an untrimmed file for comparison." ie, when comparing, I output the files like so: convert file.jpg -colorspace gray control.jpg convert...
by tsftd
2012-01-14T12:40:08-07:00
Forum: Users
Topic: Size-optimizing colors in jpeg image; also cropping oddities
Replies: 11
Views: 24806

Size-optimizing colors in jpeg image; also cropping oddities

I have a large number of (legal) comic book image files which I'm batch converting to fit on my iphone (since the originals are quite large and Apple charges an arm and a leg for each gb of storage space). The source files are jpeg, and the target format is also jpeg. I've got all the basics down (r...