Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] change picture size

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!
Labels (2)
24 Replies
Anonymous
Not applicable
Author

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"))
Anonymous
Not applicable
Author

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!!!
Anonymous
Not applicable
Author

Nice, wanted to solve it ^^. Good luck for your job man, see you !
Anonymous
Not applicable
Author

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
Anonymous
Not applicable
Author

Strange, I have the same problem and my solution was to remove simply the blank in the full pathname of convert.exe  (I take care with \\ )