ImageViewportResizer tries to resize the images to fit viewport of the browser. Add GET parameters to display image resized to your preference.
width
,
height
. Defaults to width
.fit
parameter. Defaults to 1
.white
. It accepts HTML color codes and
names. Note that you need to URL escape RGB codes like #566D7E
as
%23566D7E
.Examples:
?image=http://121clicks.com/wp-content/uploads/2012/04/portrait_eyes_23.jpg
: Example of a narrow portrait image fitted to viewport width (default).?image=http://121clicks.com/wp-content/uploads/2012/04/portrait_eyes_23.jpg&fit=height
: Example of a narrow portrait image fitted to viewport height.?image=http://121clicks.com/wp-content/uploads/2012/04/portrait_eyes_23.jpg&fit=height&scale=0.80
: Example of a narrow portrait image fitted to viewport height and scaled down to 80%.?image=http://121clicks.com/wp-content/uploads/2012/04/portrait_eyes_23.jpg&fit=height&scale=0.80&background=%23566D7E
: Example of a narrow portrait image fitted to viewport height and scaled down to 80%.