tag:blogger.com,1999:blog-3707428309210287756.post8799834381589259887..comments2022-12-13T07:28:13.511-06:00Comments on patdavid.net: ImageMagick Batch Convert FilesAnonymoushttp://www.blogger.com/profile/15510202262575881589noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-3707428309210287756.post-11280635932750172002016-01-16T15:25:23.501-06:002016-01-16T15:25:23.501-06:00Use "Lupas Rename" to change all spaces ...Use "Lupas Rename" to change all spaces into dots or underlines. Best regards from Poland :)Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3707428309210287756.post-32121455009458567302015-11-27T02:58:22.523-06:002015-11-27T02:58:22.523-06:00hey it works lika a charm to a file with no space ...hey it works lika a charm to a file with no space in the filename, how to make it work too on the file with a space?Topix Jogjahttps://www.blogger.com/profile/08910744516280536164noreply@blogger.comtag:blogger.com,1999:blog-3707428309210287756.post-78002821362007685612014-04-15T17:08:28.087-05:002014-04-15T17:08:28.087-05:00You can make this portable by putting the command ...You can make this portable by putting the command in a .bat file, but you have to double up on the %s to this:<br /><br />for %%f in (*.png) do (convert %%f -quality 100 %%~nf.pdf)<br /><br />Just put the .bat file in a folder full of .png files and double-click it to run, no command window required. Note I'm converting .png to .pdf, but .jpg works too. Very useful, thanks!Jeff Burnhamnoreply@blogger.comtag:blogger.com,1999:blog-3707428309210287756.post-3381771529454790282014-01-29T00:16:26.381-06:002014-01-29T00:16:26.381-06:00Thank You Pat!! Same circumstances, with hundreds ...Thank You Pat!! Same circumstances, with hundreds of png's to convert. Done in a flash.mobo531https://www.blogger.com/profile/11906807325160947574noreply@blogger.comtag:blogger.com,1999:blog-3707428309210287756.post-23157402891604125492013-05-02T16:17:39.367-05:002013-05-02T16:17:39.367-05:00for %f in (*.png) do (convert %f -quality 100 %~nf...for %f in (*.png) do (convert %f -quality 100 %~nf.jpg)<br /><br />You tried this command, but reversed the jpg/png, so you called this command _exactly_ in your command window?<br /><br />for %f in (*.jpg) do (convert %f -quality 100 %~nf.png)<br /><br />I've tried it here, and it works fine. You're not calling this from a batch file, are you? (the Copy.bat statement has me a little confused)Anonymoushttps://www.blogger.com/profile/15510202262575881589noreply@blogger.comtag:blogger.com,1999:blog-3707428309210287756.post-20174716182510303722013-05-02T16:12:10.521-05:002013-05-02T16:12:10.521-05:00I tried the reverse conversion from jpg to png
an...I tried the reverse conversion from jpg to png <br />and got this error<br />The following usage of the path operator in batch-param<br />substitution is invalid: %~nf.png)<br /><br /><br />For valid formats type CALL /? or FOR /?<br />"convert - Copy.bat" was unexpected at this time.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3707428309210287756.post-67068451986771696402012-05-19T13:50:25.043-05:002012-05-19T13:50:25.043-05:00In the bash shell (used in Linux and other unixes,...In the bash shell (used in Linux and other unixes, even cygwin on Windows):<br /><br />for f in *.png; do convert "$f" -quality 100 "${f%%.png}.jpg"; doneAnonymousnoreply@blogger.com