This was the final solution for anyone looking:
C:\path\cmd.exe /S /C ""C:\path\magick.exe" "C:\path\800x77.jpg" -resize 600x600 -strip -quality 85 -gravity center -background white -extent ""%[fx:w^<250?250:w]x%[fx:h^<250?250:h]"" "C:\path\result600x250.jpg""
I had to double up the double ...
Search found 6 matches
- 2018-04-26T13:32:53-07:00
- Forum: Users
- Topic: [SOLVED] Conditionally Adding Padding To Images
- Replies: 9
- Views: 6778
- 2018-04-26T08:48:46-07:00
- Forum: Users
- Topic: [SOLVED] Conditionally Adding Padding To Images
- Replies: 9
- Views: 6778
Re: Conditionally Adding Padding To Images
"Why are you using cmd.exe?"
I'm not the original author of our system code so I don't know why but I'm looking into removing it. Thanks for the recommendation.
"I assume that "C:\path\magick.exe" actually exists."
Yes.
"Your second command has a "<" character, twice. This has a special meaning ...
I'm not the original author of our system code so I don't know why but I'm looking into removing it. Thanks for the recommendation.
"I assume that "C:\path\magick.exe" actually exists."
Yes.
"Your second command has a "<" character, twice. This has a special meaning ...
- 2018-04-25T15:26:28-07:00
- Forum: Users
- Topic: [SOLVED] Conditionally Adding Padding To Images
- Replies: 9
- Views: 6778
Re: Conditionally Adding Padding To Images
Okay. Thanks for your help!
- 2018-04-25T14:13:20-07:00
- Forum: Users
- Topic: [SOLVED] Conditionally Adding Padding To Images
- Replies: 9
- Views: 6778
Re: Conditionally Adding Padding To Images
I can't get it to work when the system runs it. I believe it's an issue with the quotes around the conditions but I've tried escaping them a number of different ways and I still can't get it. Any ideas?
This runs (but doesn't do what I want):
C:\path\cmd.exe /S /C ""C:\path\magick.exe" "C:\path ...
This runs (but doesn't do what I want):
C:\path\cmd.exe /S /C ""C:\path\magick.exe" "C:\path ...
- 2018-04-24T13:51:52-07:00
- Forum: Users
- Topic: [SOLVED] Conditionally Adding Padding To Images
- Replies: 9
- Views: 6778
Re: Conditionally Adding Padding To Images
Cool! Thanks! I will try that out.
- 2018-04-24T12:10:07-07:00
- Forum: Users
- Topic: [SOLVED] Conditionally Adding Padding To Images
- Replies: 9
- Views: 6778
[SOLVED] Conditionally Adding Padding To Images
Okay, I've searched a good bit for this and I've not had any luck.
I process product images when they are uploaded to a website to fit inside a width of 600 x 600. My problem is that if an image is too short, I need to pad the image so that it is AT LEAST 250 pixels tall and 250 pixels wide. So, a ...
I process product images when they are uploaded to a website to fit inside a width of 600 x 600. My problem is that if an image is too short, I need to pad the image so that it is AT LEAST 250 pixels tall and 250 pixels wide. So, a ...