Search found 5 matches

by sakis_s
2020-02-21T14:35:33-07:00
Forum: Users
Topic: Resize image, keep aspect ratio and add white background
Replies: 2
Views: 1097

Re: Resize image, keep aspect ratio and add white background

What is your version of Imagemagick? For IM 6: convert image -resize 1050x1200 -gravity center -background white -extent 1050x1200 newimage For IM 7, replace convert with magick Thank you so much fmw42! Based on your command i was able to change some things for multiple images of a folder and final...
by sakis_s
2020-02-21T08:44:55-07:00
Forum: Users
Topic: Resize image, keep aspect ratio and add white background
Replies: 2
Views: 1097

Resize image, keep aspect ratio and add white background

Hi! I've tried so many different things but nothing really works for me. Can someone please help me? I have many .jpg images inside a folder all 1448x2048 pixels. I'm trying to convert all of them to 1050x1200 pixels and add white background to keep the aspect ratio. I'm using ImageMagick for window...
by sakis_s
2020-02-07T12:18:35-07:00
Forum: Users
Topic: Convert .png image, fill white background and keep original name
Replies: 5
Views: 1265

Re: Convert .png image, fill white background and keep original name

It depends upon what you mean by 50%. -quality 50 sets the compression. -define jpeg:extent sets a specific file size in kb (not percent) See https://imagemagick.org/script/command-line-options.php#quality https://imagemagick.org/Usage/formats/#jpg_write -quality 50 was exactly what i wanted. Thank...
by sakis_s
2020-02-07T11:21:47-07:00
Forum: Users
Topic: Convert .png image, fill white background and keep original name
Replies: 5
Views: 1265

Re: Convert .png image, fill white background and keep original name

If you are trying to make transparency turn to white in your png to jpg conversion, then just use mogrify. It will convert a whole folder of files. Lets say your images are in directory xx. First make a new directory, xxx. Now hange directories to xx. The run the command mogrify -path path_to/xxx -...
by sakis_s
2020-02-07T10:00:28-07:00
Forum: Users
Topic: Convert .png image, fill white background and keep original name
Replies: 5
Views: 1265

Convert .png image, fill white background and keep original name

Hi, I'm trying to figure out how can i convert multiple photos at once from .png format to .jpg, fill white color background and keep the original filenames. All in one command. I tried multiple things but couldn't make it work in one command. This command fills white background perfectly but it's i...