Blog Post RSS ?

Blogs » ColdFusion » Quick and Dirty Way to get Image Dimensions
 

Quick and Dirty Way to get Image Dimensions

by davidjmedlock

…posted by davidjmedlock:

img = tk.getDefaultToolkit().getImage("C:\image.jpg"); width = img.getWidth(); height = img.getHeight(); #width#
#height#

I’m by no means a master of all things Java, but this is an easy way to grab the height and width of an image. I haven’t tried it with GIF’s just yet, but I think it’ll work… Enjoy!

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Ping.fm
  • Twitthis

Related posts:

  1. A Quick-And-Dirty Way To Update Your Firefox Extensions For Firefox extension users, not extension developers, this post details...
  2. Sumo Paint: A Very Fine, Free Online Image Editor Jennifer takes a look at Sumo Paint, a superb web-based...
  3. How To Create A Color Palette From An Image Using Kuler Jennifer shows you how to use Kuler to extract a...
  4. Better Selections In Photoshop With Quick Masks The Quick Mask in Photoshop offers a really easy way...
  5. Two Quick Illustrator Text Effects Jennifer shows you how to create two text effects in...

This post has 11 responses so far