3 ms·
oo! As long as we're sharing our favourite terminal tips, here's mine: In your .bash_profile, add this line: alias imgsz='sips -g pixelWidth -g pixelHeight'
by roberthahn 13y ago
oo! As long as we're sharing our favourite terminal tips, here's mine: In your .bash_profile, add this line:
alias imgsz='sips -g pixelWidth -g pixelHeight'
sips stands for "scriptable image processing system"[1], and provides terminal users with a toolset for inspecting and manipulating images. The alias above is really useful for web developers who need a quick look at how big a given image is:
$ imgsz logo.png
/path/to/logo.png
pixelWidth: 500
pixelHeight: 120
[1] https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/sips.1.html https://developer.apple.com/library/mac/documentation/Darwin...
- aroman 13y agothank you!
- roberthahn 13y agohappy to help!