Welcome To Snipplr
Everyone's Recent PHP Snippets Tagged image
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
integration of an image/title/description into a snippet using WindowsOnWeb
0
715
posted 15 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
1199
posted 15 years ago by leonelsantos
Currenty getImagInfo() also call getImageXMP() so you only need the first function to get your infos.
0
1265
posted 15 years ago by frankyfish
It allows you to automatically get the first image from the current post, and display it.
2
4402
posted 15 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
1101
posted 15 years ago by gms8994
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
960
posted 15 years ago by Kit
Creating thumbnails of the images is required many a times, this code will be useful to know about the logic of thumbnail generation.
0
1142
posted 15 years ago by paulgrenwood
This snippet will create an array of all images in a directory and sub-directories and display them randomly.
4
3939
posted 15 years ago by superuntitled
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
1239
posted 16 years ago by zartgesotten
This is a simple script that will allow you to crop an image that you upload from a form.
1
1089
posted 16 years ago by aristoworks
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
980
posted 16 years ago by fruehjahr