Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged image



1 2 3 4 Next »
Outputs an image path from a defined directory.
2 138 posted 11 years ago by dsntos
You will probably have to hide the medium sized image.
2 105 posted 11 years ago by kristarella
Forces a user to download a file, for e.g you have an image but you want the user to download it instead of displaying it in his browser.
0 105 posted 11 years ago by fruehjahr
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 124 posted 11 years ago by Jenhale
it needs the GD2 library
5 134 posted 11 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 407 posted 12 years ago by jamesming
Usage coming soon.
6 152 posted 12 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 161 posted 12 years ago by kyokutyo
It gets images randomly from folder that you've pointed.
4 169 posted 12 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 89 posted 12 years ago by dmlanger
2 243 posted 12 years ago by Cory
This randomly displays 1 of the 5 arrays (amount of arrays to choose from can be reduced or increased)
3 153 posted 13 years ago by jonhenshaw
get the image size and reduces it dynamically
3 144 posted 13 years ago by valcartei
example: thumb.php?p=image.jpg&s=45
0 118 posted 13 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 120 posted 13 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 127 posted 13 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 102 posted 14 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 99 posted 14 years ago by dandyna
makes a resized duplicate of an image
0 105 posted 14 years ago by jkochis
4 164 posted 14 years ago by jkochis
extraido de http://es.php.net/manual/en/ref.domxml.php
2 101 posted 14 years ago by mate
1 2 3 4 Next »