Search found 10 matches

by 00bins
2019-04-19T11:40:11-07:00
Forum: Users
Topic: scripting / processing multiple images
Replies: 9
Views: 6976

Re: scripting / processing multiple images

thanks for that link. I think I'll probably tidy up my code (e.g. make it handle spaces in filenames, quoting etc..) and see if I can propose it as a patch/pull request. It's not like full on scripting but it does address some of the perf issues that the doc you linked mentions, and which are also m...
by 00bins
2019-04-19T10:35:07-07:00
Forum: Users
Topic: scripting / processing multiple images
Replies: 9
Views: 6976

Re: scripting / processing multiple images

you sir have the patience of a saint - I'd just munged my original @ file and forgotten the -write part.

It did at least complete this time but took about 5 mins - so still doesn't help when there are 1000's of files.

thanks again
Rob
by 00bins
2019-04-19T09:29:58-07:00
Forum: Users
Topic: scripting / processing multiple images
Replies: 9
Views: 6976

Re: scripting / processing multiple images

right then I'm back to needing my @list.txt method unless I'm doing something wrong. My modified code that reads list.txt and feeds each line as argc,argv to magick (convert) takes 22 secs on windows to process 1300 files. using -script has so far nearly nuked my machine, running out of swap, causin...
by 00bins
2019-04-19T09:11:23-07:00
Forum: Users
Topic: scripting / processing multiple images
Replies: 9
Views: 6976

Re: scripting / processing multiple images

ok I just got back and tried it and no files were deleted as you say.

I suppose now I should generate both my @list and a -script list and see which is faster

thanks for all the help

Rob
by 00bins
2019-04-19T06:04:22-07:00
Forum: Users
Topic: scripting / processing multiple images
Replies: 9
Views: 6976

Re: scripting / processing multiple images

Thanks

I'm afk but intrigued to know which file +delete will delete - I don't want to delete either my source file nor the file I've written after the resize operation

cheers
Rob
by 00bins
2019-04-19T00:19:03-07:00
Forum: Users
Topic: scripting / processing multiple images
Replies: 9
Views: 6976

scripting / processing multiple images

Hi I have 1000's of images to convert. I already posted about this here (https://imagemagick.org/discourse-server/viewtopic.php?f=2&t=35870#p165168), and then found that im has a -script option. I can't seem to find much help on that, nor even search for that term in this forum. I've experimente...
by 00bins
2019-04-19T00:06:04-07:00
Forum: Developers
Topic: batch processing / response file support
Replies: 6
Views: 11230

Re: batch processing / response file support

ugh - it's early but I can't seem to find anything on the forums relating to the -script option. Searching for "-script" returns no hits - not even my post above, and no amount of shell-escaping or quoting seems to help. I've made a small file with what I think should work, but it doesn't ...
by 00bins
2019-04-18T23:35:59-07:00
Forum: Developers
Topic: batch processing / response file support
Replies: 6
Views: 11230

Re: batch processing / response file support

aha - I've just noticed that magick has a -script option, which would appear to be what I need after all

thanks
Rob
by 00bins
2019-04-18T22:48:58-07:00
Forum: Developers
Topic: batch processing / response file support
Replies: 6
Views: 11230

Re: batch processing / response file support

Thanks for the replies re syntax - I'll fix that! From what I can tell IM scripts don't really address my issue - they are shell/bat/perl/etc.. scripts that still end up invoking magick once per file - unless I'm missing something. On windows there is a command line length limit of 8k chars. My test...
by 00bins
2019-04-18T15:15:53-07:00
Forum: Developers
Topic: batch processing / response file support
Replies: 6
Views: 11230

batch processing / response file support

Hi We use imagemagick to process 1000's of images as part of our build process. As a test I've timed processing a subset of these files - around 1000. Invoking convert for every file takes around 3 minutes, where each operation is like this convert -resize 64x64! Character_packs.bmp -type truecolor ...