Search found 31 matches

by Bob-O-Rama
2008-11-12T22:01:33-07:00
Forum: Developers
Topic: How to adjust JPG quality using Image::write() in Magic++
Replies: 2
Views: 9639

Re: How to adjust JPG quality using Image::write() in Magic++

That's simply too easy... can you make it really difficult and perplexing? Perhaps requiring several hundred lines of assembler code? :-) I was looking over the Magick++ documentation for a while and must have totally spaced out.

Thanks!!!
by Bob-O-Rama
2008-11-12T20:43:13-07:00
Forum: Developers
Topic: How to adjust JPG quality using Image::write() in Magic++
Replies: 2
Views: 9639

How to adjust JPG quality using Image::write() in Magic++

I've obviously missed the memo...
How do you select the compression quality when writing out to JPG when using the Magick++ APIs?

I've noticed that all of the JPGs I'm writing out are using 18:1 compression. No wonder I have more artifacts than the British Museum.

Thanks!

-- Bob
by Bob-O-Rama
2008-11-03T14:34:01-07:00
Forum: Developers
Topic: Magick++ to average several images
Replies: 3
Views: 20053

Magick++ to average several images

I have a pile of files say 1.jpg, 2.jpg, 3.jpg,... N.jpg, all same size, depth, etc. I need to merge them together by averaging them. They would all have equal weight in the final image. Obviously I could loop through the images and perform the math on corresponding pixels. ( I may have to do this a...
by Bob-O-Rama
2008-06-04T20:09:18-07:00
Forum: Developers
Topic: Correcting TCA with ImageMagic
Replies: 0
Views: 3611

Correcting TCA with ImageMagic

I need to correct CA for thousands of images in batches which will ultimately have similar or identical CA characteristics. Has anyone created a CA reduction function written using ImageMagick's libraries?

Thanks!

-- Bob
by Bob-O-Rama
2008-03-24T18:38:15-07:00
Forum: Developers
Topic: Resize without preserving aspect ratio in Magick++
Replies: 1
Views: 6303

Re: Resize without preserving aspect ratio in Magick++

The issue, as it turns out, is that creating a Geometry object using "800x600!" e.g. Geometry output = "800x600!"; does not set the aspect flag in the object. To get it to work I needed to use output.aspect( TRUE ); to get subsequent Image::resize( output ) to work as I needed. I...
by Bob-O-Rama
2008-03-20T22:32:35-07:00
Forum: Developers
Topic: Resize without preserving aspect ratio in Magick++
Replies: 1
Views: 6303

Resize without preserving aspect ratio in Magick++

Hi, I've tried Image::sample() and Image::resize() images to a smaller size by specifying geometries like "1440x720!" or just "1440x720" ) and I very often get a pixel or two shaved off the resulting height or width ( but never both ) of the resulting image. What is the proper wa...
by Bob-O-Rama
2008-03-03T20:04:31-07:00
Forum: Developers
Topic: Magick++ double cropping conundrum
Replies: 2
Views: 7091

Re: Magick++ double cropping conundrum

Thanks!!! Its works like Magick, in fact! Of course I guess I should RTF(riendly)M WRT the virtual canvas stuff, as this might eliminate the necessity for a double crop and the rest. If I could set up a coordinate system centered on the center of the image, and have the rotate() maintain 0,0 as the ...
by Bob-O-Rama
2008-03-02T21:33:07-07:00
Forum: Developers
Topic: Magick++ double cropping conundrum
Replies: 2
Views: 7091

Magick++ double cropping conundrum

Hi, I'm sorry for the lengthy posting, but I wanted to offer as much detail as I can in the hopes someone will recognize the error of my ways... The short version is that I'm using Magick++ for rotating and cropping and image and then perfom another crop operation. The resulting image after the fina...
by Bob-O-Rama
2008-02-07T23:13:12-07:00
Forum: Users
Topic: Getting a HBITMAP for use in SetBitmap()
Replies: 4
Views: 10273

Re: Getting a HBITMAP for use in SetBitmap()

I'll give it a try! That will certainly cut out a bunch of steps. Now that I see how simple it is. I'm sort of kicking myself for not attempting to do the same. :-)

-- Bob
by Bob-O-Rama
2008-02-07T23:02:55-07:00
Forum: Users
Topic: Magick++ Image::unsharpmask usage question
Replies: 0
Views: 2878

Magick++ Image::unsharpmask usage question

Hi, I'm looking for some guidance on using Image::unsharpmask(). So I'm doing something like: Image my_image; my_image.read( "somefile.jpg" ); my_image.unsharpmask( radius, sigma, amount, threshold ); And I see no difference at all after the function returns. I'm not sure if I'm picking po...
by Bob-O-Rama
2008-01-27T18:26:58-07:00
Forum: Users
Topic: Image.read() with Geometry enhancement request...
Replies: 1
Views: 4292

Image.read() with Geometry enhancement request...

...or reality check. I'd like to be able to specify a geometry value to crop an image during the read process. For example, given a 2048x1536 JPG image, I want to specify a Geometry( "1024x768+512+384" ) for example, to get the read( geometry, filename ) to crop the image during read. It a...
by Bob-O-Rama
2008-01-27T17:59:11-07:00
Forum: Users
Topic: Getting a HBITMAP for use in SetBitmap()
Replies: 4
Views: 10273

Re: Getting a HBITMAP for use in SetBitmap()

For posterity, an update: I ended up writing out a pre-scaled version of the image to a temp file, using CImage ( the MS provided class ) and loading the temp file into it. This gives a HBITMAP for use in SetBitmap() on a CStatic that displays the image. I wanted to implement a CRectTracker to allow...
by Bob-O-Rama
2008-01-19T20:48:29-07:00
Forum: Users
Topic: Getting a HBITMAP for use in SetBitmap()
Replies: 4
Views: 10273

Re: Getting a HBITMAP for use in SetBitmap()

Of course its exactly what I need. But I could not get it working. Once I got the function to complete, any attempts to use the returned handle caused it to exploded deep in the bowels of GDI. So perhaps I need a tutorial on how to use it, or confirmation that it is supposed to work and not just a v...
by Bob-O-Rama
2008-01-19T09:58:28-07:00
Forum: Users
Topic: Getting a HBITMAP for use in SetBitmap()
Replies: 4
Views: 10273

Getting a HBITMAP for use in SetBitmap()

Hi, I'm not a huge fan of VC++, but when given lemons... so perhaps I'm missing some really simple way to do what I need. I have a CDialog based application and need to set the bitmap of a control. Simple enough. I have found several difficult, and a couple totally perplexing ways to get a "MFC...
by Bob-O-Rama
2008-01-18T08:30:40-07:00
Forum: Users
Topic: MSVC++ 2005 Image::read() string problem
Replies: 1
Views: 4322

Re: MSVC++ 2005 Image::read() string problem

OK, so reducing it to its simplest, in VC2005 I am unable to get: Image myImage; myImage.read( "C:\\SOME.JPG" ); myImage.read( _T("C:\\SOME.JPG") ); // etc... or any other way to construct strings to work from a Release build. From a Debug build it works fine. If I create a str::...