Registry / utility / image-size

image-size

JSON →
library3.6.0rbrubygemsunverified

Measure following file dimensions: apng, avif, bmp, cur, emf, gif, heic, heif, icns, ico, j2c, jp2, jpeg, jpx, mng, pam, pbm, pcx, pgm, png, ppm, psd, svg, swf, tiff, webp, xbm, xpm

gem install image_size
INSTALL
IMPORT
SIG · IMAGE-SIZE
I
image-size
utilityrubyv3.6.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ImageSize
require 'image_size'

Get image dimensions from a file

require 'image_size' img = ImageSize.open('photo.jpg') puts img.width, img.height
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.6.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
image-size — gem install image-size · libregistry