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 980 posted 16 years ago by Jenhale
it needs the GD2 library
5 906 posted 16 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 2784 posted 16 years ago by jamesming
Usage coming soon.
6 983 posted 16 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 906 posted 16 years ago by kyokutyo
It gets images randomly from folder that you've pointed.
4 1067 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 751 posted 16 years ago by dmlanger
2 1249 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 997 posted 17 years ago by jonhenshaw
get the image size and reduces it dynamically
3 926 posted 17 years ago by valcartei
example: thumb.php?p=image.jpg&s=45
0 858 posted 17 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 737 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 683 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 743 posted 18 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 711 posted 18 years ago by dandyna
makes a resized duplicate of an image
0 783 posted 18 years ago by jkochis
4 1127 posted 18 years ago by jkochis
extraido de http://es.php.net/manual/en/ref.domxml.php
2 808 posted 18 years ago by mate
1 2 3 4 Next »