Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Resize Images On Upload
  • Hi, I'm working on an ecommerce system for a university project and would like to resize the images of products before they are saved on the site. I got the upload process working fine, thanks to the wonderful Upload class in FuelPHP.
    I saw there is an Image class that has a function resize, which should do the job. Is it possible to use the 2 classes together to make a small preview image + a bigger one for when users click on the preview?
    If so where in the upload process would I have to start resizing the original image? Great job by the FuelPHP team, this framework is awesome!!!
  • Yes, it is. Here's a bit of code that I've used. You can probably pull out pieces of it for your own use. http://scrp.at/bUA

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion