Hi I'm building a package Called YOIS.
I'm building an image render component that reduce the image size to be displayed in a Web page in a desired size . Reducing the file to.
This is very useful for photogallery pages, and other Web sites who use a lot of images, because the downloading page time is very short.
This component create a cache directory like: /images_dir/mant_dir_name/image_format/resized/talle_image-axis_y_or_x-image_name.jpg.
Each image with the same format is saved inside .../image_format/resized/ ( example: Every jpg is saved inside ../jpg/resized/generate_file_name.jpg). Wen the Web page is displayed the image inside the "resized" folder is requested. Only the images, smaller than the main image ( inside /images_dir/ folder) are resized.
Where:
images_dir : Image url directory. Relative to the web site
mant_dir_name: Images Maintenance directory (absolute path /public_html/images/..)
image_format: Images format folder name ( jpg or gif, or png )
resized: Resized Images directory
talle_image-axis_y_or_x-image_name.jpg: Last file name. This is realliy what the Web page show and download when is requested.
images_dir: Must be with 0775 mode
Require the GD2 extension installed.
I'm using this in a web site I build.
I reuse and build an THTMLMail componet
http://www.pradosoft.com/forum/index.php/topic,7429.0.html that I include too in the same package
I have included in the package too the JonHaywood TCaptchaImageComponent
This package is a Beta Version but it works fine. I still have to document more, enhance more, translate better documentation, codes still... I suppose I'll have to do that for all my life with this package, class and any each code i write in my life...
I propose to include as part of framework, but that decision depends on the acceptance of you. Any suggestion always is welcome.
The documentation is here:
http://sysdevworld.com/collaborations/PRADO/YOIS/I hope this package (YOIS) will contribute too to the PRADO world components.
Next week ( next Monday). Ill upload an example.
Sorry for my English :-(
Greetings and thanks in advantage for PRADO and you.
Yois