Welcome To Snipplr
Everyone's Recent PHP Snippets Tagged image
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
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
[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
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
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
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