Need to randomley ShearRotateImage in Folder

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
celvenjohnson33
Posts: 12
Joined: 2018-10-10T09:26:59-07:00
Authentication code: 1152

Re: Need to randomley ShearRotateImage in Folder

Post by celvenjohnson33 »

how would I reference any .jpg in the folder?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Need to randomley ShearRotateImage in Folder

Post by fmw42 »

celvenjohnson33 wrote: 2018-10-10T12:56:03-07:00 this is the error I get now after i cd the directory

magick: unable to open image 'image.jpg': No such file or directory @ error/blob.c/OpenBlob/3489.

the files are formatted as "yyyy-mm-dd-hh-mm-ss.jpg"
Post your exact command line with an actual file name, so I can see what you may have mistyped
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Need to randomley ShearRotateImage in Folder

Post by fmw42 »

celvenjohnson33 wrote: 2018-10-10T12:57:04-07:00 how would I reference any .jpg in the folder?
You can either cd to the folder and just use the file name with suffix. Or you can put the absolute or relative path to the image as part of the file name.

Once we resolve your error issue, I can give you a script loop to use to process all the files in a folder. But one step at a time.
Post Reply