Last active
August 29, 2015 14:24
-
-
Save rbobillot/b53f72188f98b58e4c41 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.net.URL | |
import java.io.File | |
import javax.imageio.ImageIO | |
//lazy val file = new File( "/tmp/testing" ) | |
lazy val file = new URL( "http://goo.gl/vOYtrv" ) | |
lazy val img = ImageIO.read( file ) | |
lazy val width = img.getWidth | |
lazy val height = img.getHeight | |
println( "width : " + width ) | |
println( "height: " + height ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment