Search found 9 matches

by WallBanger
2017-06-19T21:10:06-07:00
Forum: Users
Topic: Batch Rename Images According to Color?
Replies: 25
Views: 14582

Re: Batch Rename Images According to Color?

Hi again... Just popped back in to verify that the newest version of ImageMagick (7.0.6-0) now does indeed leave out the leading "#" symbol for hex color code output (awesome). Here is the final script I ended up with (run from Windows Command Prompt): @ECHO OFF FOR %a in (*.png) DO ( REN ...
by WallBanger
2017-06-02T20:35:52-07:00
Forum: Users
Topic: Batch Rename Images According to Color?
Replies: 25
Views: 14582

Re: Batch Rename Images According to Color?

I wondered what I might do to show my appreciation... So I came back again to say:

If you guys fmw42 or magick in particular need any sort of graphic/design work done (perhaps some new icons or whatever), just let me know and I will do it for free
by WallBanger
2017-06-02T19:43:17-07:00
Forum: Users
Topic: Batch Rename Images According to Color?
Replies: 25
Views: 14582

Re: Batch Rename Images According to Color?

Right now there is no control for # or no #. Since this is in beta, it can be changed. I would say that perhaps it would be best to leave it off, since one can always do magick image -depth 8 -format "#%[hex:u.p{0,0}]" info: if one wants to add it. I have recommended the change. I guess i...
by WallBanger
2017-06-02T16:53:43-07:00
Forum: Users
Topic: Batch Rename Images According to Color?
Replies: 25
Views: 14582

Re: Batch Rename Images According to Color?

See my note above that I seem to have posted at the same time as the OP Sorry, posted without seeing your reply Example using the IM 7.0.5.10 beta: magick logo: -depth 8 -set filename:f "%[hex:u.p{0,0}]" %[filename:f].png produce an image named #FFFFFF.png That's ridiculously easy now! I'...
by WallBanger
2017-06-02T16:33:09-07:00
Forum: Users
Topic: Batch Rename Images According to Color?
Replies: 25
Views: 14582

Re: Batch Rename Images According to Color?

I have asked magick (the main IM developer) to create a new string escape %[hex:u.p{x,y}] like %[pixel:u.p{x,y}] but which provide output as hex values only. This should be available in the next release or possibly later today or tomorrow in the beta. That's so cool! I am sure others will appreciat...
by WallBanger
2017-06-02T16:22:19-07:00
Forum: Users
Topic: Batch Rename Images According to Color?
Replies: 25
Views: 14582

Re: Batch Rename Images According to Color?

I've installed GOW (GNU On Windows) which does give me the "printf" capability - but as for how to use this to batch process all of my filenames, or how to transfer those results to the renaming of the correct files in my folder... this is way over my head I think. If your GNU utilities i...
by WallBanger
2017-06-02T16:03:37-07:00
Forum: Users
Topic: Batch Rename Images According to Color?
Replies: 25
Views: 14582

Re: Batch Rename Images According to Color?

for /f "usebackq skip=1 tokens=6 delims=,:()# " %A in (`%IM%convert toes.png -scale "1x1^!" txt:`) do echo %A This takes the input file, toes.png, finds the average colour, and outputs the hex value. Instead of finding the average, you can crop to a single pixel. Instead of &quo...
by WallBanger
2017-06-02T13:30:28-07:00
Forum: Users
Topic: Batch Rename Images According to Color?
Replies: 25
Views: 14582

Re: Batch Rename Images According to Color?

Windows will let you use commas and parentheses in filenames you can also easily convert the images and save with output filenames formatted like "rgb(255,60,30).png", "rgb(28,112,182).png", "rgb(37,95,51).png", etc., using an IM command like this... magick 2016*.png -...
by WallBanger
2017-06-01T23:11:42-07:00
Forum: Users
Topic: Batch Rename Images According to Color?
Replies: 25
Views: 14582

Batch Rename Images According to Color?

Hello. first post. I have ImageMagick-7.0.5-Q16, I'm on Windows 10 x64... I have a large folder full of PNG files made up of a single color... Here are a few of them to give an idea of what I'm trying to do: https://i.stack.imgur.com/LsvDo.png I would like to be able to batch rename the image files ...