Search found 4 matches

by harryhermit
2018-10-15T00:04:34-07:00
Forum: Users
Topic: Running batch file only on images recently modified
Replies: 4
Views: 3706

Re: Running batch file only on images recently modified

The forfiles command looks promising, but I'm having issues with it bringing up the correct products with my criteria. What's the correct command to bring products that have been modified within the past 7 days? I tried this command, but it seems to bring products that are older than 7 days ago: for...
by harryhermit
2018-10-13T23:24:42-07:00
Forum: Users
Topic: Running batch file only on images recently modified
Replies: 4
Views: 3706

Running batch file only on images recently modified

Hi,

I run a batch script to modify images in folders and subfolders in windows. It works great, but it runs imagemagick for every single image in the folders. Is there a way to limit the files that are modified to a time period eg. a week from date modified?

Thanks
by harryhermit
2018-09-25T10:38:16-07:00
Forum: Users
Topic: Modifying a list of images
Replies: 3
Views: 2205

Re: Modifying a list of images

Thanks for the help! I got it to run using this batch:

for /F "tokens=*" %%A in (images.txt) do magick %%A -set filename:f "%%[t]" -background white -gravity center ^
-extent %%[fx:max(w,h)]x%%[fx:max(w,h)] -quality 100 "%%[filename:f].jpg"
by harryhermit
2018-09-24T23:58:40-07:00
Forum: Users
Topic: Modifying a list of images
Replies: 3
Views: 2205

Modifying a list of images

Hi, I'm using imagemagick in windows and I use this script at the command line: magick *.jpg -set filename:f "%[t]" -background white -gravity center ^ -extent %[fx:max(w,h)]x%[fx:max(w,h)] -quality 100 "%[filename:f].jpg" It works great for modifying images in the folder I navigate to, but I need t...