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 751 posted 15 years ago by Jenhale
it needs the GD2 library
5 700 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 2349 posted 15 years ago by jamesming
Usage coming soon.
6 785 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 726 posted 16 years ago by kyokutyo
It gets images randomly from folder that you've pointed.
4 811 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 568 posted 16 years ago by dmlanger
2 1035 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 781 posted 16 years ago by jonhenshaw
get the image size and reduces it dynamically
3 744 posted 16 years ago by valcartei
example: thumb.php?p=image.jpg&s=45
0 673 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 578 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 541 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 560 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 535 posted 17 years ago by dandyna
makes a resized duplicate of an image
0 578 posted 17 years ago by jkochis
4 913 posted 17 years ago by jkochis
extraido de http://es.php.net/manual/en/ref.domxml.php
2 632 posted 17 years ago by mate
1 2 3 4 Next »