I am working with Zend and using Zend_Filter_ImageSize() to create a thumbnail. Everything works ok but after the thumb is created the original file is kept.
I went through the files and I found nothing that might trigger the deletion of the original. Basically this is what I am doing:
$filter = new Zend_Filter_ImageSize();
$output = $filter->setHeight(200)
->setWidth(200)
->setThumnailDirectory('./uploads/thumb/')
->setStrategy(new Zend_Filter_Imagesize_Strategy_Crop())
->filter("./uploads/$img");
Is there any way to keep just the thumb and get rid of the original?
Right now, its not supporting original file deletion.
So you can do
– You can add a delete function to that class, But I don’t suggest it.
– You can extend the class and add the functionality to it.