I've got a scenario like this:
First scan a list of files specifically all pictures(files with .jpg or jpeg) inside one folder;
then get the size of of the picture;
if the size is greater than a certain size make it smaller; if it's already smaller than that size just continue the process;
I'd like to ask if there's a way to re-size the picture. How to design this process? Could anyone give me some idea?
Thanks!
Maybe you'll need to put 64x64! instead of 64x64 to have exactly the right dimension (according to the ImageMagick API), so it gives:
"C:\\Program Files\\ImageMagick-6.7.3-Q16\\convert.exe "+((String)globalMap.get("tFileList_1_CURRENT_FILEPATH")) +" -resize 64x64! "+((String)globalMap.get("tFileList_1_CURRENT_FILEDIRECTORY"))+"\\exact_"+((String)globalMap.get("tFileList_1_CURRENT_FILE"))+"."+((String)globalMap.get("tFileList_1_CURRENT_FILEEXTENSION"))
So cool!!! I just tried and it worked successfully. Really Appreciate your time and effort!!!
So the most tricky part is that \\ should be used instead of "\" in the regular command line. And also the convert.exe should be added to the command part. Then I can add other components to meet other requirements. Hope it will work smoothly.
Thank you so much again!!!
Hi
elvalin1559, congratulation! It will be very helpful for the guys who want to change the picuture's size later!
Or3l, thanks for your solutions and effort.
Best regards
Shong