Zend - The PHP Company




Resizing

Add Code


A SafCom Function for Image Resizing  

Type: application
Added by: safras
Entered: 26/02/2003
Last modified: 03/12/2002
Rating: - (fewer than 3 votes)
Views: 10620
This is a very simple and easy way to resize your Image, Just passed the value for SafComMakeThumbnails() it will do your work


Another Resize Script with Border Option  

Type: code fragment
Added by: liquidkernel
Entered: 09/05/2002
Last modified: 05/12/2001
Rating: **** (7 votes)
Views: 12966
This script will open an image ($image), resize it to the values you specify ($max_height and $max_width), then if you want, add a border ($addborder). It uses ImageCopyResampled from GD 2 as ImageCopyResized looks too pixelated. Set $image_quality to anything between 0 and 100.


Convert height and width to your specific height and width  

Type: code fragment
Added by: fphilipe
Entered: 10/05/2004
Last modified: 05/12/2003
Rating: - (fewer than 3 votes)
Views: 6094
Convert height and width to your specific height and width. This code returns the relative height to the width and otherwise too.


Generic Image Resizer  

Type: code fragment
Added by: malalam
Entered: 20/06/2006
Last modified: 09/12/2005
Rating: - (fewer than 3 votes)
Views: 3499
This is a generic resizer code snippet. It allows you to resize web compliant images (jpeg, gif, png), and to keep or not proportions, on both height and width, only width, onlyheight, the greatest value, the smallest value...


Image Resize (Uses ImageSource)  

Type: class
Added by: dhiggins
Entered: 18/04/2001
Last modified: 04/12/2000
Rating: - (fewer than 3 votes)
Views: 12335
This is a function that resizes an image using imagemagick.


Online resized images  

Type: code fragment
Added by: Freerk
Entered: 26/09/2000
Last modified: 01/12/2000
Rating: - (fewer than 3 votes)
Views: 13746
When you need the same image on your site several times,but in different sizes here's your solution. If you want your users to easy upload images from their digicam and store them in a default size. This is how you do it. Store images once and show them in any dimension you'd like Based on jpgtn.


Resize Graphic All  

Type: code fragment
Added by: bomm21
Entered: 09/07/2001
Last modified: 07/12/2000
Rating: *** (5 votes)
Views: 12584
Simple PHP Image Resize


Resize Image on the fly  

Type: code fragment
Added by: nkapetanakos
Entered: 09/11/2006
Last modified: 02/11/2005
Rating: - (fewer than 3 votes)
Views: 6898
PHP script that resizes on the fly an image file (jpg, gif, png). Two parameters (image name and size).


resize image to 50%, 25%  

Type: code fragment
Added by: idban
Entered: 18/03/2000
Last modified: 08/12/1999
Rating: *** (28 votes)
Views: 16166
some time one image use for many pages, like to create a thumbnail etc,
hopely this code usefull for you


Resize Jpgs  

Type: code fragment
Added by: allah03
Entered: 07/12/2000
Last modified: 04/12/2000
Rating: **** (6 votes)
Views: 16203
A quick function that shrinks images, maintaining integrity of the image (no stretching). You pass the path to the image, the path for the new image, and the size constraints within which the image should fall, and the function returns true or false.



Search



This Category All Categories