Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged image



1 2 3 4 Next »
To use the resize function you must pass in the forced width, forced height, source image, and destination image. The function then uses the GD2 library functions to read the source image's size. It will then calculate the new image's size based off...
3 783 posted 15 years ago by Jenhale
it needs the GD2 library
5 727 posted 15 years ago by iTony
When you run this script you will see the result like this Image width 379 Image height 344 Image type 2 Image attribute width="379" height="344" You will get the width, height, type of an image and also attribute of an image, I use this fun...
3 2418 posted 15 years ago by jamesming
Usage coming soon.
6 811 posted 15 years ago by mattkenefick
[directory] ├index.php //this snippet ├imageA.jpg ├imageB.gif └imageC.png This snipet displays the thumbnail of the picture file that exists in the same directory. When the thumbnail image is clicked, the original size image is...
6 757 posted 16 years ago by kyokutyo
It gets images randomly from folder that you've pointed.
4 860 posted 16 years ago by skywalker
This function will return the height and width of an image that will change if the height/width is greater than the maximum supplied width and height.
2 600 posted 16 years ago by dmlanger
2 1070 posted 16 years ago by Cory
This randomly displays 1 of the 5 arrays (amount of arrays to choose from can be reduced or increased)
3 816 posted 16 years ago by jonhenshaw
get the image size and reduces it dynamically
3 770 posted 16 years ago by valcartei
example: thumb.php?p=image.jpg&s=45
0 698 posted 16 years ago by iloveitaly
This snippet is for use with image module, a small contributed module for image handling. (Yes: in Drupal you need a /contributed/ module for this o_O. The template snippet links the images to their own node.
2 598 posted 17 years ago by berkes
This snippet is for use with image_attach, a small contributed module that uses image module to create nice thumbs in any node type. The template snippet makes the images show up larger in the body node, and instead of linking to itself, it links t...
2 554 posted 17 years ago by berkes
File admin.php di una galleria di immagini in php - Function.php file to include in an image gallery php script Directory structure: Gallery(main directory) _admin.php _function.php _photo(directory) __image1.gif __image2.gif
2 584 posted 17 years ago by dandyna
File function.php di una galleria di immagini in php - Function.php file to include in an image gallery php script Directory structure: Gallery(main directory) _admin.php _function.php _photo(directory) __image1.gif __image2.gif
2 556 posted 17 years ago by dandyna
makes a resized duplicate of an image
0 597 posted 17 years ago by jkochis
4 943 posted 17 years ago by jkochis
extraido de http://es.php.net/manual/en/ref.domxml.php
2 662 posted 17 years ago by mate
1 2 3 4 Next »