Is it possible to resize pics after their uploaded?

OK let me clarify. I have lots of super HQ pics and when I goto the image page the image doesnt come up and I get the broken link image. If i click it and let it open and then go back the pic will load just fine.

I dont have the time or super speedy connection to go thru all 10000 pics so is there a way to resize them. I searched the forum and saw an old post for cropping and resizing but not what I need.

Is there a way to have the images show or what do yall suggest to fix this.
Thanks

Comments

  • what is probably happening is if they are Super High Quality pictures they are most likely pretty large in size and php is running out of memory. Whoever is hosting your site will have to update the php memory limit to accommodate for your larger images.

    What size (in mb) are you loading up there?

    Also, a link really helps when troubleshooting.
  • maybe try downloading by FTP the whole folder, and do a batch resize using Photoshop or Irfanview (freeware) and re-upload.
  • Right, I read that i was running out of memory in other threads and knew that was happening. For now i am using shared hosting and have alot of sites and dont really want to piss of my host so havent asked, nor do i know what to ask him to increase.

    Here is the link.
    http://www.jerkable.com/Adriana+Lima/8066580_Adriana_Lima_-_Perfect_Stranger_Premiere__14_.jpg

    I found this bit of code in another script I have and wondered if this or something like this can be written. I cant do php and have no clue so I really do appreciate your help.

    <?php

    function imageResize($width, $height, $target) {

    /*takes the larger size of the width and height and applies the
    formula accordingly...this is so this script will work
    dynamically with any size image*/

    if ($width > $height) {
    $percentage = ($target / $width);
    } else {
    $percentage = ($target / $height);
    }

    //gets the new value and applies the percentage, then rounds the value

    $width = round($width * $percentage);
    $height = round($height * $percentage);

    /*returns the new sizes in html image tag format...this is so you
    can plug this function inside an image tag and just get the*/

    return "width=\"$width\" height=\"$height\"";

    }

    ?>
  • trisweb Administrator
    If you're running out of memory with the current images, then resizing them on the server won't even work, since it will run out of memory in the same way...

    You'll need to re-upload them at smaller sizes.
  • so does this mean there cant be a resize option like coppermine has?
    you know how thye resize the pic to fit and then you can click thru to get the larger pic.

    I want to offer wallpapers and need the full size to work.
    What do I need to ask my host to increase?

    Thanks
  • trisweb Administrator
    Ask them to increase the php_memory_limit to something like 64 or 96 MB. Tell them it's for an image gallery, obviously.

    Zenphoto does resize very well, it just needs the memory for larger images. It'd be the same with any other gallery script.
  • ok, so just got this reply. Any other suggestion besides moving hosts?

    Sorry, we can't do this on shared servers.
    You need a dedicated ($289/mo) or semi-dedicated server ($49.95/mo). Please let me know if you interested.
  • Unless I mistaken, OP is saying that the resizing is working but it is slow and times out before all resized pictures are returned. It sounds more like my problem which is just that my server (I self-host), doesn't have a fast enough processor to keep up with resizing the high-res photos well on the fly. It works, just too slow for my liking. I have the server in a VM and I have temp moved it to a faster machine and it does work better. That is what I get for using old hardware. Anyway, what I would like is simply a batch resize tool that could do the resize in the background with the appropriate cache photo size pulled from zenphoto config and of course named correctly in the cache folder. I know I should just write it myself but I haven't gotten around to it yet and it would take me forever. :)
  • Permesso-- let me motivate you to write it lol
    I am uploading huge 2000x2000 SHQ pics. I didnt mean to upload them but they are there and I want to use them. I just want to cut out steps involved and make it easier to upload the images. I am using for celebrity site so lots of pics.

    The pics dont even load,seems they need to be 800x1200 and they will load just fine in the image page. I want to be able to upload whatever size and have it resize to that size so i dont have to do batch resize and go thru that mess.

    Let me know what you come up with.
    Kev
  • trisweb Administrator
    pluto459 -- if your 2000x2000 images won't resize on the server, and you want to use those for Zenphoto to resize automatically, then there's no getting around that memory limit... sorry. No gallery using the GD library will work on images that big on your server, it's just not going to happen.

    It's like asking to fit ten gallons of water in a five gallon bucket... there's no way I can make the bucket fit ten gallons for you... you have to get a bigger bucket, or put less water in it. So since your host won't change the memory limit and make your bucket bigger, your only option is to use smaller images, or move hosts. Period.

    Zenphoto is exactly what you need, you just need a better host with more memory... or ImageMagick support in Zen (offloads the processing outside the PHP process), which could be coming soon, but not that soon...
Sign In or Register to comment.