Search found 12669 matches

by snibgo
2020-02-07T08:47:07-07:00
Forum: Users
Topic: Invalid Parameter - -resize npm ImageMagick
Replies: 1
Views: 161

Re: Invalid Parameter - -resize npm ImageMagick

What version of IM, on what platform? I suppose your platform is Windows. If you use IM v7, I suggest you use "magick", not "convert". Command failed: Invalid Parameter This message doesn't come from ImageMagick "convert". Instead, it comes from Microsoft Windows "convert". You are running the wrong...
by snibgo
2020-02-06T22:07:37-07:00
Forum: Users
Topic: Resizing very large 16-bit TIFF messes up the grayscale.
Replies: 9
Views: 382

Re: Resizing very large 16-bit TIFF messes up the grayscale.

I've learnt a new word, thanks! Areoid: The surface that provides the datum line (the equivalent for sea level) for Mars. Beware of "-normalize", "-contrast-stretch" and "-auto-level", as they will all shift what was at 50% (the areoid) to some other value. But that may not matter for your purposes....
by snibgo
2020-02-06T20:13:14-07:00
Forum: Users
Topic: Merging 2+ PAM GRAYSCALE_ALPHA images
Replies: 5
Views: 245

Re: Merging 2+ PAM GRAYSCALE_ALPHA images

Convert is linked to magick on my system. Nevertheless, they probably do different things. The program figures out what command invoked it, and assumes the command syntax is v6 for "convert" or v7 for "magick". The 2 input files are the same file with 50% opacity. The resulting file has 75% opacity...
by snibgo
2020-02-06T19:32:39-07:00
Forum: Users
Topic: Appending PNG to animated image
Replies: 6
Views: 286

Re: Appending PNG to animated image

I would do it like this (Windows BAT script):

Code: Select all

magick ^
  border2.gif -layers coalesce ^
  -extent 600x670 ^
  null: ^
  ( text.png -set page +0+591 ) ^
  -layers composite ^
  -layers optimize ^
  out.gif
by snibgo
2020-02-06T19:14:12-07:00
Forum: Users
Topic: JPG to PDF with exact A4 dimensions
Replies: 7
Views: 451

Re: JPG to PDF with exact A4 dimensions

The problem boils down to: your inputs are smaller than 2480x3508 pixels. You want outputs of that size, without scaling your images. So want a white border around the image.

Code: Select all

magick in.jpg -gravity center -extent 2480x3508 out.pdf
by snibgo
2020-02-06T16:58:44-07:00
Forum: Users
Topic: Merging 2+ PAM GRAYSCALE_ALPHA images
Replies: 5
Views: 245

Re: Merging 2+ PAM GRAYSCALE_ALPHA images

For v7, I suggest you use "magick", not "convert".

Try inserting "-type grayscalealpha" before writing the output pam.
by snibgo
2020-02-06T16:52:24-07:00
Forum: Users
Topic: Appending PNG to animated image
Replies: 6
Views: 286

Re: Appending PNG to animated image

"null: -insert 1" creates a null image, and moves it to position 1 in the list, ie the second image. That was good for the png + gif_frames problem. But for the gif_frames + png problem, the null should go near the end, not the start. Change "-insert 1" to "+swap".

The "-set page" may also be wrong.
by snibgo
2020-02-06T16:44:49-07:00
Forum: Users
Topic: Resizing very large 16-bit TIFF messes up the grayscale.
Replies: 9
Views: 382

Re: Resizing very large 16-bit TIFF messes up the grayscale.

I tested "-evaluate AddModulus 50%"on the OP's downsized image, so it was bound to give weird results at the black/white boundary that was resized to give various shades of gray. As @magick suggests, this should be done before downsizing.
by snibgo
2020-02-06T15:52:36-07:00
Forum: Users
Topic: Resizing very large 16-bit TIFF messes up the grayscale.
Replies: 9
Views: 382

Re: Resizing very large 16-bit TIFF messes up the grayscale.

Sadly, 11 GB is too large for me to download. IM does try to load the entire image into RAM. If that fails, it should use disk. I have seen DEM files where a nominal "sea level" (standard ellipsoidal surface, or something) is represented as zero in the image files, with elevation above that as posit...
by snibgo
2020-02-06T13:35:45-07:00
Forum: Users
Topic: why I cannot use installed fonts
Replies: 3
Views: 169

Re: why I cannot use installed fonts

IM should recognise all TTF fonts installed on Windows. After installing a font, no further action is needed.
by snibgo
2020-02-06T12:14:44-07:00
Forum: Users
Topic: why I cannot use installed fonts
Replies: 3
Views: 169

Re: why I cannot use installed fonts

Perhaps your command is wrong, but how can we guess if you don't show us your command?

Perhaps you used a font that isn't listed in "magick -list font".
by snibgo
2020-02-06T07:42:47-07:00
Forum: Users
Topic: Need help for merging 2 images from folders of 100 images
Replies: 12
Views: 444

Re: Need help for merging 2 images from folders of 100 images

For v7, I suggest you use "magick", not "convert". Your script extends the top image to 200% in the y-dimension, to make room for the bottom image. This assumes the two images have the same height. But they don't. Your two sets of files are in two directories. Do corresponding files have the same na...
by snibgo
2020-02-05T19:04:40-07:00
Forum: Users
Topic: convert pcl5 files to pdf
Replies: 1
Views: 124

Re: convert pcl5 files to pdf

rhouse wrote:a number of files
What format are those files? Are the formats listed in "magick -list format"?
by snibgo
2020-02-05T16:20:23-07:00
Forum: Users
Topic: Need help for merging 2 images from folders of 100 images
Replies: 12
Views: 444

Re: Need help for merging 2 images from folders of 100 images

Do you want to resize it before or after the "-extent"? If before, insert "-resize 300" before the "-extent". If after, insert it after.
by snibgo
2020-02-05T15:23:50-07:00
Forum: Users
Topic: Need help for merging 2 images from folders of 100 images
Replies: 12
Views: 444

Re: Need help for merging 2 images from folders of 100 images

You show bash syntax, with \ for line-continuation. Are you running this in a BAT script, or what? For Windows, use caret ^ as line-continuation. If using BAT script, also double the percent % signs.