Code solutions to PHP, JS, CSS

Spread your code soluces to the world

Love me

Search results for : resize    (4)

Image class resize and rounded mask (php gd image)

This PHP GD class offers several useful features. It resizes images, apply a rounded mask with various options : • output size • crop mode : crop to fill, fill to fit • rounded corners or square • color of the rounded mask It is complete and usable in all cases. This class use the PNG mask round_440.png
solucior.com/38-Image_class_resize_and_rounded_mask.html

Dynamic image resizing according to location (javascript)

This javascript method resize image according to its location in the page. Images do not overflow the page or div that contains them. It works automatically, it is not necessary to modify the HTML content of the body. Implementation : • copy the javascript code in the header, between <head> and </head> • In the body...
solucior.com/19-Dynamic_image_resizing_according_to_location.html

Simple image gallery PHP (php)

The following code is an image gallery script in PHP as easy as possible. A single file of a few lines of code is sufficient to list the images, create thumbnails and display them. Copy the entire code into a PHP file. Name it as you wish and drop it in a directory containing images. For reasons of simplicity, this code has no error handling....
solucior.com/17-Simple_image_gallery_PHP.html

Dynamically resizing height of textarea (javascript)

This code dynamically resize a textarea according to its contents. It can work when the textarea gains focus and during typing.
solucior.com/3-Dynamically_resizing_height_of_textarea.html