Sips command shows 'not a valid file' warning
Extract dimensions from nested pictures
I used to be able to extract dimensions from nested pictures and to edit the resulting file with:
find . -name '*.jpg' -exec sips -g pixelHeight -g pixelWidth '\{\}' ';' | \
sed 's|.*/||' | \
sed 's|.*: ||' | \
line 1: The sips is recursive with the find on the files with .jpg to get the filename, height and width in pixel
line 2: remove the path
line 3: remove what precede ":" from the height line and from the width line
What I get is: Warning: \{\} not a valid file - skipping
What should I change ?
iMac (2017 – 2020)