Search found 13038 matches

by snibgo
2010-02-10T09:20:23-07:00
Forum: Users
Topic: Convert CMYK PDF to JPG creates corrupt image.
Replies: 10
Views: 24736

Re: Convert CMYK PDF to JPG creates corrupt image.

You might install a versions that are less than four year old, and see if you still have the problem.
by snibgo
2010-02-10T09:11:10-07:00
Forum: Users
Topic: Cut the sides - or Zooming
Replies: 18
Views: 40228

Re: Cut the sides - or Zooming

Translating from Unix to Windows isn't trivial.

"Cut" is a Unix command. For Windows, you can do something like:

Code: Select all

convert %infile% -format "set ww=%%w\nset hh=%%h" info:%TEMP%\getsize.bat

call %TEMP%\getsize.bat
by snibgo
2010-02-09T01:07:53-07:00
Forum: Users
Topic: I've had no luck in the Perl Magic Forum.... Any thoughts?
Replies: 6
Views: 15206

Re: I've had no luck in the Perl Magic Forum.... Any though

I don't speak perl, so can't help you there. You might try the equivalent shell commands to see if they work. That would narrow down the problem. You might try updating IM. Your script seems to flood-fill the white border with transparent. But his shirt at the border is white, so that would cause pr...
by snibgo
2010-02-08T11:19:19-07:00
Forum: Users
Topic: I've had no luck in the Perl Magic Forum.... Any thoughts?
Replies: 6
Views: 15206

Re: I've had no luck in the Perl Magic Forum.... Any though

The description makes your script sound very complex. Resizing down, then up again? I suggest you post the script, with an original tif that sometimes goes wrong, and the intermediate files. Your platform and IM version may be relevant. Here is how I would do it (without touching density, which isn'...
by snibgo
2010-02-08T05:50:38-07:00
Forum: Users
Topic: Convert or don't convert (solved)
Replies: 4
Views: 11519

Re: Convert or don't convert

For "caret" in the above, read "greater than" (>).

Code: Select all

convert input.jpg -resize "500x500>" output.png
That will teach me not to post in a hurry.
by snibgo
2010-02-08T05:42:04-07:00
Forum: Users
Topic: How to concatenate 2 images
Replies: 3
Views: 44584

Re: How to concatenate 2 images

I'd use the montage command, with a suitable geometry to get the gap between the images.
by snibgo
2010-02-08T05:27:20-07:00
Forum: Users
Topic: Convert or don't convert (solved)
Replies: 4
Views: 11519

Re: Convert or don't convert

Code: Select all

convert input.jpg -resize "500x500^" output.png
The ^ (caret) means "don't resize unless at least one dimension is greater than what I want".

I use Windows, and ^ is a special character, so I need the quotes.
by snibgo
2010-02-06T10:41:00-07:00
Forum: Users
Topic: Smaller Imagemagick .exe to go with own program
Replies: 1
Views: 4891

Re: Smaller Imagemagick .exe to go with own program

In compilation, you can choose which features (especially which file formats) to support.
by snibgo
2010-02-04T00:39:37-07:00
Forum: Users
Topic: surface blur
Replies: 8
Views: 22075

Re: surface blur

You can get somewhere close to the Photoshop image with: convert freckles.jpg -selective-blur 0x2+08% defreckle1.png optionally followed by this, repeated a few times: convert defreckle1.png -selective-blur 0x1+5% defreckle1.png Fiddle with the numbers for some variety. Or you might try: convert fre...
by snibgo
2010-02-03T13:36:16-07:00
Forum: Users
Topic: Montage can't swap
Replies: 4
Views: 10780

Re: Montage can't swap

Thanks for the explanation. I want to avoid caching to disk, as that kills performance of IM and my computer in general. input.png is 75 M pixels. At 8 bytes per pixel, replicated 3 times, it needs 1.8 GB, which sometimes gives me the disk-caching dead-computer syndrome. I suspect I'll go the multip...
by snibgo
2010-02-03T13:07:09-07:00
Forum: Users
Topic: Montage can't swap
Replies: 4
Views: 10780

Re: Montage can't swap

Ah, thanks. Is the pre-fix/post-fix distiction documented somewhere? Are there plans to "regularise" the parsers across the utilities? I realise my code above would need work even if "swap" worked with Montage. This code does what I want:: montage ^ ( input.png -gravity East -crop 10x100+0+0%%! +rep...
by snibgo
2010-02-03T12:33:04-07:00
Forum: Users
Topic: Montage can't swap
Replies: 4
Views: 10780

Montage can't swap

Why can't montage use the "swap" option? I want to extend a 360-degree panorama by glueing a crop from the right to left, and another crop from the left to the right. To avoid re-reading the input file, I want to use clone, something like: montage ^ input.png ^ ( +clone -gravity East -crop 10x100+0+...
by snibgo
2010-01-24T17:43:08-07:00
Forum: Users
Topic: Animation, but not floating point?
Replies: 3
Views: 10092

Re: Animation, but not floating point?

To answer my own question: I have now looked at the APIs and source code. It seems that pixels are addressed by "unsigned long". This also applies to resizing, so zooming in will also result in quantisation jerks. Of course, IM is geared towards the production of individual images, rather than frame...
by snibgo
2010-01-24T04:16:45-07:00
Forum: Users
Topic: convert performance large matrix
Replies: 3
Views: 9744

Re: convert performance large matrix

Sorry for the quick semi-correction. I'm a newbie. The architecture document (http://www.imagemagick.org/script/architecture.php) is worth reading. If there's not enough memory, IM will store pixels on disk. I tried this out by creating a one billion pixel file: convert -size 1000x1000000 xc:red x.p...
by snibgo
2010-01-24T02:31:39-07:00
Forum: Users
Topic: Create equal margins
Replies: 1
Views: 5629

Re: Create equal margins

You might make a copy, trimming off the top (say) 25% of the image. Maybe also the bottom 5%, as scans can be dirty there.

Do your calculations based on that copy, then apply those numbers to the original.

The solution is messy, but it's bound to be.