Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged image



0 53 posted 10 years ago by jepedo
integration of an image/title/description into a snippet using WindowsOnWeb
0 75 posted 10 years ago by windowsonweb
A class for uploading images and creating thumbnails. Example: try{ $img = new img('photo'); if($_FILES['photo']['size']>=1000000){ exit('The file size of the file you are trying to upload is over limit. Your file size = '.$_F...
2 211 posted 10 years ago by leonelsantos
Currenty getImagInfo() also call getImageXMP() so you only need the first function to get your infos.
0 125 posted 10 years ago by frankyfish
1 117 posted 10 years ago by mracoker
It allows you to automatically get the first image from the current post, and display it.
2 159 posted 10 years ago by math89
Since PHP doesn't have a builtin imagecreatefrombmp, this allows users to upload bmp files and you can handle them and create a different image type from it.
0 114 posted 10 years ago by gms8994
This properly handles transparencies for PNG/GIF.
0 111 posted 10 years ago by gms8994
To call it just put <?php> in your template file within the loop.
2 164 posted 10 years ago by LuckyShot
0 69 posted 10 years ago by ksantoshp
Can't seem to remember where I found this and it's no longer in my bookmarks. If you know where this came from please provide the link so credit can go to the right person.
1 109 posted 10 years ago by The14thGOD
Not particularly novel, but quite clean. Allows you to put images in any location on the server and saves having to generate thumbnails at upload time. The URL to this file should be: `<filename.php>/<request>/<path>` Valid request types:...
1 115 posted 10 years ago by Kit
by m13579m
0 114 posted 10 years ago by irm
0 84 posted 10 years ago by zemin
Creating thumbnails of the images is required many a times, this code will be useful to know about the logic of thumbnail generation.
0 114 posted 10 years ago by paulgrenwood
1 97 posted 11 years ago by hasantayyar
This snippet will create an array of all images in a directory and sub-directories and display them randomly.
4 581 posted 11 years ago by superuntitled
2 111 posted 11 years ago by fabi
I pieced together this code when I had to do this for a client: - show the first image attached to a post (based on sort order in gallery tab) in medium size - put all the other images attached to the post into an imageset so that when you click on...
1 184 posted 11 years ago by zartgesotten
0 114 posted 11 years ago by pashky
This is a simple script that will allow you to crop an image that you upload from a form.
1 119 posted 11 years ago by aristoworks
4 113 posted 11 years ago by level09
3 188 posted 11 years ago by jamesming
1 115 posted 11 years ago by dsntos