Resize Image Snippets


22 July, 2013   

It can be useful to be able to resize images using jQuery

How to display visitors IP in an Image using PHP

05 December, 2012   

Instead of providing a traditional address to the image, the image file data is base64-encoded and stuffed within the src attribute. Doing so saves a network request for each image, and prevent exposure of directory paths. Please note that IE7 and below are not compatibles with data URIs.

02 March, 2013   

How to resize an array in Java

13 April, 2013   

How to resize an image to fit in a desired space.

Essentially the trick is to draw the panel/frame/etc.

Essentially the trick is to draw the panel/frame/etc. into a BufferedImage and use the ImageIO class to write it to an image file.

28 January, 2013   

Save a screen capture of a Java Frame/Panel/Window

15 April, 2012   

PHP code example for an image CAPTCHA.

I had to scan a bunch of paper documents (one image per page), and upload them all to a web site that would accept only one PDF file containing the whole set.

03 July, 2013   

How to Resize an Array in Java

02 June, 2011   

This is your most basic version of an image CAPTCHA.

Java code example to create thumbnail of an image

18 February, 2012   

CSS code example for a background image repeat vertically (y-axis), horizontally (x-axis), in both directions, or in neither direction.

This PHP script will get the day of the week from the server date and then display an image (jpg or gif) to match.

16 March, 2011   

Take an image, and put a water mark on top of it. Note that you can only use this function once per page.

19 April, 2011   

This snippet shows how to get the thumbnail from exif metadata. This is very useful for generating very fast thumbnails!! I hope many would benefit from this.

08 December, 2012   

Full screen background image using pure CSS3.

13 February, 2013   

PHP Code example for ASCII CAPTCHA

28 January, 2011   

The days of 800x600 screens are all but over, but most of us still try to accommodate 1024px wide screens. Hence the popularity of "960" width sites. This bookmarklet will resize the current browser window to that width and height. You know, so us web designers with giant monitors can see what it's like to be slummin' with a 1024...