resize and unlink file question |
On my resize function. I am trying to unlink with my width and height size add on to the new file.
When it creates a new file it stores it in my images > cache folder and then addes width and height on to it. example_100x50.jpg but the original file would be example.jpg the original files are located in images > catalog If the example.jpg file is not there in folder then I need to be able to unlink that image but because it has the width and height added on to it I do not know how to make sure it unlinks correct one. Question how could I unlink the correct cache image even though it has width and height different to the original image PHP Code: public function resize($filename, $width, $height) {
There's only one rule - please don't tell anyone to go and read the manual. Sometimes the manual just SUCKS!
|
Messages In This Thread |
resize and unlink file question - by wolfgang1983 - 02-25-2016, 02:32 AM
RE: resize and unlink file question - by Diederik - 02-25-2016, 03:13 AM
RE: resize and unlink file question - by wolfgang1983 - 02-25-2016, 07:08 PM
RE: resize and unlink file question - by wolfgang1983 - 02-27-2016, 05:32 PM
|