help 2 separate commands on the one line
Posted: 2014-05-30T08:00:49-07:00
Hi All, new to the foum and new to imagemagick!
I've got imagemagick running on a website and since the person that dealt with this left long ago I get the pleasure of figuring it all out as we(I) want to change things, I'm actually enjoying it so far, pretty powerful tool. (I'm coming from photoshop!).
Problem I'm having is:
I've got large and small images and I want to convert them both to a certain size based on orientation(I've got that ok), say 1500x1500, the larger files I want to reduce, the smaller files make larger but I want to play around with different types of interpolation for each command. (I'm using quality though just to confirm that it's working before I delve into that)
My command so far is: (I'm using window command line for test before I send onto the IT people to implement, I know there are syntax differences)
convert *.jpg -resize 1500x1500^> -quality 100 -resize 1499x1499^< -quality 1 test.jpg
i've just got the quality set to 1 and 100 so that I can test it's working at the moment.
To explain further I've have variable image size, but I want images above 1500px(wide or tall) to reduce in size, but images below 1500px(wide or tall) to increase insize, but I only want to apply certain filters to the ones i'm increasing in size(Although I might want to apply a different set to the reduced version, but I've still to test)
I could run both commands separately, but I want to run them at the same time, but to generate different outputs.
Is there anyway to group these commands so that they run independently? ie. the first resize and quality v the second resize and quality?
Anyway I hope I've explained that well, any help would be appreciated?
Thanks
joe
I've got imagemagick running on a website and since the person that dealt with this left long ago I get the pleasure of figuring it all out as we(I) want to change things, I'm actually enjoying it so far, pretty powerful tool. (I'm coming from photoshop!).
Problem I'm having is:
I've got large and small images and I want to convert them both to a certain size based on orientation(I've got that ok), say 1500x1500, the larger files I want to reduce, the smaller files make larger but I want to play around with different types of interpolation for each command. (I'm using quality though just to confirm that it's working before I delve into that)
My command so far is: (I'm using window command line for test before I send onto the IT people to implement, I know there are syntax differences)
convert *.jpg -resize 1500x1500^> -quality 100 -resize 1499x1499^< -quality 1 test.jpg
i've just got the quality set to 1 and 100 so that I can test it's working at the moment.
To explain further I've have variable image size, but I want images above 1500px(wide or tall) to reduce in size, but images below 1500px(wide or tall) to increase insize, but I only want to apply certain filters to the ones i'm increasing in size(Although I might want to apply a different set to the reduced version, but I've still to test)
I could run both commands separately, but I want to run them at the same time, but to generate different outputs.
Is there anyway to group these commands so that they run independently? ie. the first resize and quality v the second resize and quality?
Anyway I hope I've explained that well, any help would be appreciated?
Thanks
joe