Welcome, Guest. Please login or register.

Author Topic: Rename file based on image size, colors and format?  (Read 3496 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline nbache

Re: Rename file based on image size, colors and format?
« on: January 29, 2019, 08:40:39 PM »
You don't necessarily need an ARexx host for such a task, it's enough if you have a program that can output the information you need. Then you can call it as a command with redirection to a temp file and read that from ARexx.

I made an ARexx script once where I needed such a feature as part of the process, and my solution was to use the picture viewer Visage, which can be called as a Shell command with the INFO argument to output - among other things - the dimensions of the picture (and of course without displaying it).

There may well be other programs that can be used in a similar way, and even some more suitable - e.g. possibly within the NetPBM suite.

Best regards,

Niels
 

Offline nbache

Re: Rename file based on image size, colors and format?
« Reply #1 on: January 29, 2019, 11:14:17 PM »
Wow - impressive tool! 8-o

Best regards,

Niels