Search found 4 matches

by Arko
2018-10-15T12:15:45-07:00
Forum: Users
Topic: Detecting blank (no pixel) image files - version 7.0.8 Q16
Replies: 7
Views: 2348

Re: Detecting blank (no pixel) image files - version 7.0.8 Q16

Oh my goodness !!! THAT WORKS :lol: Thank you so much ! Here's the final code for anyone like me chiming in. To delete blank/empty images in a folder, do this : for file in D:/YOUR_FOLDER_HERE/YOUR_SUBFOLDER_HERE/*.png; do test=$(convert "$file" -alpha extract -format "%[fx:mean==0?0:1]" info:) if [...
by Arko
2018-10-15T11:23:03-07:00
Forum: Users
Topic: Detecting blank (no pixel) image files - version 7.0.8 Q16
Replies: 7
Views: 2348

Re: Detecting blank image files

IM 6.4.7 is so ancient that you should upgrade. It is well over 500 versions old. Did you mean 6.9.4.7 perhaps, which is still rather old. For transparent images, you should extract the alpha channel and test if it is full black convert image -alpha extract -format "%[fx:mean==0?0:1]" info: if retu...
by Arko
2018-10-15T10:42:46-07:00
Forum: Users
Topic: Detecting blank (no pixel) image files - version 7.0.8 Q16
Replies: 7
Views: 2348

Re: Detecting blank (empty, transparent) image files

I'm using version 6.4.7. Q16. By blank, I mean fully transparent, with no visible pixel. You seem to be running a Unix shell on Windows. Perhaps Windows 10 unix or Cygwin. The bc command is a unix basic calculator, which seems to be missing from your unix environment. Often when you install unix on ...
by Arko
2018-10-15T04:18:19-07:00
Forum: Users
Topic: Detecting blank (no pixel) image files - version 7.0.8 Q16
Replies: 7
Views: 2348

Detecting blank (no pixel) image files - version 7.0.8 Q16

Hi everyone, I've seen several topics about approching subject. But I can't find the solution by myself. I'm very new to shell and coding in general. My goal is to detect blank image files in a given folder and delete those files. Here's what I have so far (found in the forum) : for file in D:/00_TA...