GD question

From: AJ (nospam_at_redcatmedia.net)
Date: 02/28/04


Date: Sat, 28 Feb 2004 15:35:45 +0000 (UTC)

Hi all

I've just written a little content management system with an image upload
function. As part of this, it resizes any uploaded image to have a maximum
size of 300 pixels wide. This is the situation:

Image 1.
1.1MB, around 2000 x 1500 pixels. Uploads fine but doesn't get resized.

I then take the same image and resize it in Photoshop so that it's 1280 x
960 and 875kb. I can't remember the exact dimensions but it's exactly the
same aspect ratio as Image 1.

This gets resized perfectly.

It obviously not a file size issue, and it's not my logic (which does some
calculations on aspect ratio).

I've tried taking it down in steps from 2000 px wide but it never gets
processed until it hits 1280. I haven't done small steps so I can't say
what would happen as 1281 etc.

Is there some sort of limitation on this? I'm running 4.3 and GD2.

Regards

Andy



Relevant Pages

  • Re: GD question
    ... it resizes any uploaded image to have a maximum ... >size of 300 pixels wide. ... >calculations on aspect ratio). ... PHP has a maximum per-request memory limit configurable in php.ini, ...
    (comp.lang.php)
  • Re: How to resize image?
    ... This would only mean resizes the picture. ... You would rather check the upload and give them a warning so they can adapt ... > Let's say I've a script to let the user to upload photos. ...
    (alt.php)
  • Re: Upload and direct Processing of uploaded file using HtmlInputFile object
    ... This article accepts an image as an upload, and then takes the image data ... directly from the upload, resizes, converts to JPG, and then finally saves ...
    (microsoft.public.dotnet.framework.aspnet)
  • Fwd: [Rails] Fwd: RMagick problem
    ... >> # Resizes a Magick image to an exact size, ... geometry string should restrict height ... > maintaining the aspect ratio of the image." ... resize method that just resizes an image, ...
    (comp.lang.ruby)
  • RE: how many pixels are in an inch?
    ... One inch = 72 pixels. ... > printing wizard it resizes it by cropping off peoples heads but when I try to ... > resize it useing the only program I have ...
    (microsoft.public.office.misc)