New answers tagged

0 votes

How to batch resize all images in a folder (including subfolders)?

The script to resize all .png files in a folder to 30%. The original file can either be removed (if delete_original is true), or stays, in that case the resized file would get a name postfix ...
parsecer's user avatar
  • 157
1 vote
Accepted

Is there a way to find all PNG files in a folder that have transparent pixels

Found a way using imagemagick. identify -format '%[opaque]' filename.png so where '$@' is the path to your image: #!/bin/bash case $(identify -format '%[opaque]' "$@") in [Ff]alse) ...
Cestarian's user avatar
  • 2,051
1 vote

Is there a way to find all PNG files in a folder that have transparent pixels

Use netpbm: pngtopnm -alpha filename.png | pgmhist If there's a row starting with value "0" the image contains fully transparent pixels If there's a number row other than value "255&...
Jasen's user avatar
  • 3,761

Top 50 recent answers are included