Solved! Go to Solution.
There is also ImageMagick that you can use with commandline, maybe it can help you.
Do I have to put something between the two command?
Yes you have to install it, just go on the website and depending on your OS choose the right installer. Then for your job:
of cours you put the right directory inyour tFileList, and then for you tSystem:
"cd the_path_where_you_have_installed_imagemagick(for me C:\ImageMagick-6.7.3-Q16)" //carefull with "\", depending on the OS where the job is running
"convert "+((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"))
It should create the converted images with the prefix "exact" in your folder. Let me now if it works. ps:I didn't check the convert method of imagmagick, i've used yours
Join us at the Community Lounge.
Talend named a Leader.
Kickstart your first data integration and ETL projects.
Watch the recorded webinar!
Pick up some tips and tricks with Context Variables
Learn how media organizations have achieved success with Data Integration
Look at6 ways to start utilizing Machine Learning with Amazon We Services and Talend