Resample images on server

Discussion in 'Programming/Scripts' started by manarak, Aug 31, 2011.

  1. manarak

    manarak Member

    I've inherited an old server where the customer's editors and moderator upload images into galleries.
    They are not very tech savvy, so they are not very good at resizing pix.

    Now it has grown to 10GB and I am running out of disk space.
    I know I need to upgrade the server and change their gallery system, but for now I am out of time and need to resample their pics to buy time.

    Do you know a script that can scan a directory and its subdirectories for image files, check their size and "weight" i.e. bytes/data against pixels/dimensions and perform a resize/resample whereever necessary?
     
  2. falko

    falko Super Moderator ISPConfig Developer

    Not sure, but maybe you can do this with ImageMagick.
     
  3. manarak

    manarak Member

    aaah, good idea, thank you!
     

Share This Page