Search found 1015 matches

by el_supremo
2006-12-13T15:33:54-07:00
Forum: Users
Topic: Problem with false(?) dpi value
Replies: 8
Views: 21687

BTW. That command will also involve recompressing the image which by default will use a quality of 75. You can use "-quality 95" to get a better quality image but you can't avoid the image degradation caused by decompressing and recompressing it so you should try to combine these operation...
by el_supremo
2006-12-13T15:24:10-07:00
Forum: Users
Topic: Problem with false(?) dpi value
Replies: 8
Views: 21687

If you want to force the JPG header to 72 dpi use:

Code: Select all

convert input.jpg -units pixelsperinch -density 72x72 output.jpg
Pete
by el_supremo
2006-12-13T15:16:07-07:00
Forum: Users
Topic: How to delete an image?
Replies: 2
Views: 9758

-delete is not for deleting files. It deletes an image or group of images from an image sequence such as you would get from (for example) an animated GIF.
See: http://magick.imagemagick.org/script/co ... php#delete

Pete
by el_supremo
2006-12-13T15:04:03-07:00
Forum: Users
Topic: identify.exe output to file?
Replies: 2
Views: 10662

Try adding "fclose(stdout);" after your system call.

Pete
by el_supremo
2006-12-12T19:05:42-07:00
Forum: Users
Topic: Prespective Transformations in IM
Replies: 7
Views: 18471

Yes, I usually install Q8.

Pete
by el_supremo
2006-12-12T15:46:07-07:00
Forum: Users
Topic: identify.exe output to file?
Replies: 2
Views: 10662

I think that system() just passes all its arguments to identify without interpreting ">out.txt" as redirection. You have to do the redirection yourself. I don't know how you would do this in C++ but in C I did this with the freopen function: freopen("out.txt","w",stdout...
by el_supremo
2006-12-12T10:41:08-07:00
Forum: MagickWand for PHP
Topic: Sepia Tone Turning whole image yellow?
Replies: 2
Views: 12476

The MagickWand source code says that "80% is a good starting point" and this means 80% of QuantumRange. If 50000 is giving you a good result that would make sense if you are using a Q16 version of IM because 80% of the Q16 QuantumRange is 52428.

Pete
by el_supremo
2006-12-12T08:27:07-07:00
Forum: Users
Topic: Prespective Transformations in IM
Replies: 7
Views: 18471

I installed IM 6.3.1 and now it produces the same image.
I also installed MatrixReal and got the perspective transform to work.

Pete
by el_supremo
2006-12-11T21:47:19-07:00
Forum: Users
Topic: Prespective Transformations in IM
Replies: 7
Views: 18471

I've got Perl installed on my WinXP system but I can't get the matrix package to install. So I just cut your result: det=-0.003057*i + -0.000389*j + 1; xx=(0.533277*i + -0.033042*j + 5.690943)/det; yy=(-0.392491*i + 0.833446*j + 15.611041)/det; and pasted it into the appropriate place in the convert...
by el_supremo
2006-12-11T19:24:59-07:00
Forum: Users
Topic: Prespective Transformations in IM
Replies: 7
Views: 18471

Anthony: I tried out your transformation example but didn't get quite the same result as you did:
http://members.shaw.ca/el_supremo/build ... formed.png

I'm using 6.3.0 Q8. Would the Q8 version make a difference to the result?

Pete
by el_supremo
2006-12-06T08:14:02-07:00
Forum: Users
Topic: Problem with false(?) dpi value
Replies: 8
Views: 21687

It depends what you mean by the "correct" dpi :-)
IM gets the dpi info from the jpg header. Photoshop (and GIMP?) gets the info from the EXIF header which is also in the file.

Pete
by el_supremo
2006-11-29T17:07:47-07:00
Forum: MagickWand for PHP
Topic: Mapping IM commands , reduce red channell for 'red eye'
Replies: 5
Views: 20191

[edit]Oooops. I meant to reply to your post in the MagickWand forum. Oh well. I think this does what you wanted :-) I'd be interested if anyone has a better/alternate method. Pete MagickWand *magick_wand = NULL,*region_wand = NULL; int dx,dy,x,y; MagickWandGenesis(); magick_wand = NewMagickWand(); M...
by el_supremo
2006-11-29T16:48:51-07:00
Forum: MagickWand for PHP
Topic: Creating transparent Text
Replies: 3
Views: 15280

I saw your other post and tried it too. Haven't solved it yet but will probably post what I have.

Seafood? YUMMY :-)

Pete
by el_supremo
2006-11-29T12:29:42-07:00
Forum: MagickWand for PHP
Topic: How to create transparent image
Replies: 1
Views: 13166

I have a C function, which uses MagickWand to produce a plain transparent PNG. This should give you the essence of what is required for a PHP script. Pete /* Make a plain transparent image */ #include <windows.h> #include <wand/magick_wand.h> void test_wand(void) { MagickWand *magick_wand = NULL; Pi...
by el_supremo
2006-11-28T15:55:29-07:00
Forum: MagickWand for PHP
Topic: Creating transparent Text
Replies: 3
Views: 15280

After PixelSetColor add a PixelSetOpacity - I think it will look like this:
PixelSetOpacity($pixel,"0.8");
for almost transparent text.

Pete