Professional Web Applications Themes

Problem: Resize large JPG's with PHP memory limit - PHP Development

I am using a shared server and the max PHP memory limit is set at 10MB. I can not change this. I would like to resize uploaded JPG images. I have tried many different scripts using the GD libs, but they all do not work for larger JPGs. I know that the limit is the max PHP memory, but is there anything that I can do to get this to work? ImageMagick? Java? Thanks...

  1. #1

    Default Problem: Resize large JPG's with PHP memory limit

    I am using a shared server and the max PHP memory limit is set at 10MB. I
    can not change this. I would like to resize uploaded JPG images. I have
    tried many different scripts using the GD libs, but they all do not work for
    larger JPGs. I know that the limit is the max PHP memory, but is there
    anything that I can do to get this to work?

    ImageMagick?
    Java?

    Thanks


    Kenton Guest

  2. #2

    Default Re: Problem: Resize large JPG's with PHP memory limit


    Shell out to imagemagik, such as 'convert' program and pass it the
    parameters to the jpg

    --
    Mike Bradley
    http://www.gzentools.com -- free online php tools
    "Kenton Smith" <ca> wrote in message
    news:Dj30c.642525$.. 
    for 


    CountScubula Guest

  3. #3

    Default Re: Problem: Resize large JPG's with PHP memory limit

    In article <Dj30c.642525$ts4.629992pd7tw3no>,
    "Kenton Smith" <ca> wrote:
     

    Yes. :)

    $dir = "/my/img/dir";
    system("convert -resize 400 $dir/image.jpg $dir/image_thumb.jpg");

    for example.

    --
    Sandman[.net]
    Sandman Guest

Similar Threads

  1. Replies: 2
    Last Post: June 1st, 03:43 AM
  2. 2 GB Memory Limit
    By Helge Preuss in forum Linux Setup, Configuration & Administration
    Replies: 10
    Last Post: September 8th, 08:10 AM
  3. #25127 [Opn->Fbk]: error with memory limit
    By sniper@php.net in forum PHP Development
    Replies: 1
    Last Post: August 19th, 09:42 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139