i just discovered that getimagesize taking a lot of resources of the server, it does hi usage on disks, i need to solve this matter by resizing pics that are not in the pre-set format 120x 90,

users are uploading pics on the website and i resize them to 120x90, if pic has different proportions, i keep it , i don't screw it , but in this case i need to check resolution on each load.

i got information that i need to resize these not standard pics to the flat 120 x 90 then i don't need to check resol., but i don't wanna screw them

is there any php function that can resize everything to my 120 x 90 , if pic has different proportions, it must put let say white color by the sides, wanna fill that blank space with my prefered color, is there anything that can work for me ? also need to have a chance to convert from png, jpg, gif, bmp, if possible

right now i'm using GDI php functions...

thanx

    i even use this function imagecopyresampled
    but i don't think this solve my problem, let say example i need to resample
    image to 120x 90 from source image 90x 120

    if i'm going to keep proportions, there will be empty space and i need to fill this with my color

      yeah, i forget the function names, but people use it/them a lot for watermakes; you create a colored 120x90 image, than place the proportioned image ontop of it in the top left,

        Write a Reply...