Search found 457 matches

by GreenKoopa
2010-11-13T16:49:03-07:00
Forum: Users
Topic: -crop by percent size and offsets
Replies: 6
Views: 25978

Re: -crop by percent size and offsets

Despite all the small quirks and sometimes (to me) unexpected behaviors, I have usually figured something out. I am absolutely impressed with the power packed into the command-line interface. And the learning curve was easier than I had anticipated. In only one week I can usually find the documentat...
by GreenKoopa
2010-11-12T16:51:43-07:00
Forum: Users
Topic: identify resolution (or how many pixel image has)
Replies: 3
Views: 26535

Re: identify resolution (or how many pixel image has)

Check out the -format option. Also:
http://www.imagemagick.org/script/escape.php

Code: Select all

identify -format "%x x %y" 1.gif
convert 1.gif -format "%x x %y" info:
by GreenKoopa
2010-11-12T11:39:58-07:00
Forum: Users
Topic: Best way to upscale pixel art exactly 200%
Replies: 27
Views: 92526

Re: Best way to upscale pixel art exactly 200%

An example:

Code: Select all

convert in.png -filter point -resize 200% out.png
Also, if your image is in indexed color, blending colors obviously becomes a problem.
by GreenKoopa
2010-11-12T11:29:07-07:00
Forum: Users
Topic: Best way to upscale pixel art exactly 200%
Replies: 27
Views: 92526

Re: Best way to upscale pixel art exactly 200%

When performing a -resize you should specify a -filter . I'll assume 200% means a doubling of width and height (not area). A point filter would simply expand each pixel to 4 pixels of identical color. Or bilinear may give you what you want. In general, simple filters work better for drawings and com...
by GreenKoopa
2010-11-11T10:48:53-07:00
Forum: Users
Topic: -crop by percent size and offsets
Replies: 6
Views: 25978

Re: -crop by percent size and offsets

Yuck! I guess not every simple need can be anticipated by an elegant solution. Thanks for the responses all the same.
by GreenKoopa
2010-11-10T14:10:50-07:00
Forum: Users
Topic: -crop by percent size and offsets
Replies: 6
Views: 25978

-crop by percent size and offsets

How to I achieve the intent of convert in.png -crop 40x40%+10%+10% out.png since offsets must be specified in pixels? My first thought was convert in.png -chop 10x10% -crop 40x40%+0+0 out.png but the initial chop then alters the percentage for the crop. Obviously something like (40%/(1-10%)=44.4%) c...
by GreenKoopa
2010-11-10T11:13:52-07:00
Forum: Users
Topic: Better image
Replies: 1
Views: 3802

Re: Better image

(sarcasm) Shout enhance at your computer. This works especially well for security or satellite video captures of unknown bad guys. (/sarcasm) Cropping makes your image look bad, or it looked bad to begin with? How to make an image look "good" is probably to vague for anyone to effectively ...
by GreenKoopa
2010-11-10T10:48:47-07:00
Forum: Users
Topic: Batch recursive convert, replace files, windows
Replies: 2
Views: 11700

Re: Batch recursive convert, replace files, windows

Sounds more like a windows batch problem than an ImageMagick problem. I love Windows for many things, but the scripting is weak and often counter-intuitive to me. While I'm sure some batch expert can offer a solution, I personally prefer Perl for this kind of thing. ImageMagick has a Perl interface,...
by GreenKoopa
2010-11-09T19:23:03-07:00
Forum: Users
Topic: %[mean] option - an aside
Replies: 5
Views: 13672

Re: %[mean] option - an aside

Are you sure %[fx:mean] value is just red channel? Could it actually be whole image mean? I learned long ago to never be sure of anything. Maybe I can't convert between Q16, Q8, and % correctly, and I am certainly no ImageMagick wizard. In my second post I provided my 4 commands and 16 outputted nu...
by GreenKoopa
2010-11-09T18:00:48-07:00
Forum: Users
Topic: %[mean] option - an aside
Replies: 5
Views: 13672

Re: %[mean] option - an aside

A bug somewhere in here??? A +clone keeps the stuck value, while loading a second copy from the file fixes it. Also notable, fx:mean appears to look at only the first channel. convert 01.tif -format "%[mean] %[fx:mean] %[standard-deviation] %[fx:standard_deviation]" info: 36120.1 0.564631 ...
by GreenKoopa
2010-11-09T14:23:45-07:00
Forum: Users
Topic: %[mean] option - an aside
Replies: 5
Views: 13672

%[mean] option - an aside

While playing with a recent post I discovered that the following gives two different outputs: convert in.tif -channel G -set option:b "%[mean]" +delete label:%[b] out1.png convert in.tif -set option:a "%[mean]" -channel G -set option:b "%[mean]" +delete label:%[b] out2....
by GreenKoopa
2010-11-09T11:02:43-07:00
Forum: Users
Topic: What does return the %[mean] option?
Replies: 3
Views: 8540

Re: What does return the %[mean] option?

I am not sure I understand why you are counting all-or-nothing for color values. Maybe you are trying to get an estimate of the maximum possible ink used. Maybe to charge a customer half for only printing a page that is half color and half blank? Or charge half for a page that contains only black an...
by GreenKoopa
2010-11-08T05:00:22-07:00
Forum: Users
Topic: How to extract part of dvd cover image
Replies: 6
Views: 14085

Re: How to extract part of dvd cover image

Or try replacing your -crop with -chop
by GreenKoopa
2010-11-08T04:44:59-07:00
Forum: Users
Topic: How to extract part of dvd cover image
Replies: 6
Views: 14085

Re: How to extract part of dvd cover image

An initial resize to avoid percentages is certainly a valid way to go. Since your image geometry for the crop (420x0) specifies a size yet not an offset (location) you want, your are chopping your image into pieces (or tiles, of size 420x 0 , I guess). Specify an offset to get just one piece. Here i...
by GreenKoopa
2010-11-08T02:59:51-07:00
Forum: Users
Topic: -fx advice
Replies: 7
Views: 14929

Re: -fx advice

I'm still unsure of how multiplying the masked channels equates to zeroing when ALL channels are near zero (AND vs OR, and maybe you just understand my intent better than me). Still I absorbed the general idea and created a similar solution. My script runs 100x faster, eliminating my visual noise an...