Tag Info

New answers tagged


composite -blend 30 1.jpg 2.jpg res.jpg will do the job. I used your pictures and here is the result: If you want to make opacity of first image more or less, you shoud modify -blend param from 0 to 100 (with -blend 0 your 1.jpg will be transparent, so result will be same as original 2.jpg. with -blend 100 result will be same as 1.jpg. so with -blend 50 ...


The following solution is based on the idea in @loa_in_'s comment. It uses file, which for this task is considerably faster than convert. It also handles "weird" filenames correctly. file -F '' -0 *.png \ | sed -e 's/^\(.*\)\x00.*PNG.*, \([0-9]\+\) x \([0-9]\+\).*$/\2 \3 \1/;s/^\(.*\)\x00.*JPEG.*, \([0-9]\+\)x\([0-9]\+\).*$/\2 \3 \1/' \ | awk '$1==$2 { ...


Here's another way to do it (via fx special operator) that should work with arbitrary file names: for f in ./*.jpg do identify -format '%[fx:(h == w)]' "$f" | grep -q 1 && printf '%s\n' "$f" done


You can do this using the command convert from ImageMagick and Awk: convert *.png *.jp* -format '%w %h %f\n' info: | awk '$1==$2 { $1=$2=""; print substr($0, 3) }' The command above will output the list of images that have exactly the same number of pixels horizontally and vertically. If instead what you want to find is images that only visually ...

Top 50 recent answers are included