Search found 10 matches

by Ninja Joe
2020-04-02T21:49:41-07:00
Forum: Users
Topic: How to Crop Pixels?
Replies: 9
Views: 2258

Re: How to Crop Pixels?

On "-shave", see https://www.imagemagick.org/script/command-line-options.php#shave . This removes some amount from both left and right, and some other amount from both top and bottom. But that's not what you want. magick in.png -gravity West -chop 250x0 -gravity East -chop 350x0 out.png This works ...
by Ninja Joe
2020-03-31T03:20:02-07:00
Forum: Users
Topic: How to Crop Pixels?
Replies: 9
Views: 2258

Re: How to Crop Pixels?

How do I remove 250 pixels from the left, and 350 pixels from the right? With -chop or -shave?

Please provide an example.
by Ninja Joe
2020-03-30T00:39:52-07:00
Forum: Users
Topic: How to Crop Pixels?
Replies: 9
Views: 2258

Re: How to Crop Pixels?

You would have to chain 4 -chop commands, one for each side, all in one command line. How to chain multiple -chop commands? I tried: convert in.jpg -gravity South -chop 0x136 -gravity East -chop 0x200 out.jpg But it produced weird results, such as chopping from the center of the image instead of th...
by Ninja Joe
2020-03-29T23:49:55-07:00
Forum: Users
Topic: How to Crop Pixels?
Replies: 9
Views: 2258

Re: How to Crop Pixels?

Looks like -crop is what I want. Is it possible to crop from all four sides? E.g.:

convert in.png -crop 350x500x400x200 out.jpg
by Ninja Joe
2020-03-29T23:08:00-07:00
Forum: Users
Topic: How to Crop Pixels?
Replies: 9
Views: 2258

How to Crop Pixels?

convert in.png -chop 350x500x400x200 out.jpg

In one call, how do I crop 350 pixels from the top, 500 px from the bottom, 400 px from the left and 200 px from the right?
by Ninja Joe
2020-03-29T01:34:06-07:00
Forum: Users
Topic: Progressive Scan JPEGs
Replies: 2
Views: 1235

Re: Progressive Scan JPEGs

Looks like -interlace Plane is the way to go according to:

https://github.com/contao/image/issues/24
by Ninja Joe
2020-03-28T23:35:29-07:00
Forum: Users
Topic: Progressive Scan JPEGs
Replies: 2
Views: 1235

Progressive Scan JPEGs

I love using Convert for converting multiple images into JPEG format, e.g.: convert *.png -set filename:fname %t_b +adjoin %[filename:fname].jpg But is it possible to save JPEGs with Progressive Scans? I like to save my JPEGs with multiple Progressive Scans as it's considered to be best practice for...
by Ninja Joe
2020-03-27T23:57:38-07:00
Forum: Users
Topic: Converting Multiple Files with Imagemagick Convert
Replies: 4
Views: 1525

Re: Converting Multiple Files with Imagemagick Convert

I got it! It was:

convert *.png -set filename:fname %t_b +adjoin %[filename:fname].jpg
by Ninja Joe
2020-03-27T22:26:57-07:00
Forum: Users
Topic: Converting Multiple Files with Imagemagick Convert
Replies: 4
Views: 1525

Re: Converting Multiple Files with Imagemagick Convert

I removed the double quote and tried again. It worked! But the filenames had extra single apostrophes ' Original filename: Scan_20200327.png New filename: ''Scan_20200327_b'.jpg' How do I get it to output Scan_20200327_b.jpg instead of ''Scan_20200327_b'.jpg' The command I entered was: convert *.png...
by Ninja Joe
2020-03-27T21:24:11-07:00
Forum: Users
Topic: Converting Multiple Files with Imagemagick Convert
Replies: 4
Views: 1525

Converting Multiple Files with Imagemagick Convert

I have many png files I'd like to convert to jpg. The resulting filenames should end with _b.jpg, e.g., filename.png -> filename_b.jpg.

So far, I have:

convert *.png" -set filename:fname '%t_b' +adjoin '%[filename:fname].jpg'

But it's not producing anything, what am I doing wrong?