[eluser]M4rc0[/eluser]
[quote author="textnotspeech" date="1221961573"]You're going to have to be more clear. I can't tell if you've renamed functions in my library or it's some other functions. My class saves the image it's constructed with and then operates on that image. If you rename the image after that, it's not going to overwrite the original saved image.[/quote]
For the upload i'm using CI upload helper, for resizing i'm using your great library.
The problem is exactly what you mentioned, the CI upload helper upload and then renames the image, so the imagination library is not overwriting. Can you think of anything that could help fixing this?
Maybe i should make a renaming function and add in imagination, but the problem is the validation that it was working so well with CI upload helper. It'd be a lot of trouble to add stuff like valid extensions, max height, max width, max size and set them all with $this->validation->error_string = 'MSG';
I hope you are following.
In short, this is what's happening:
1) I'm uploading an image with the name "my_picture.jpg"
2) CI upload helper uploads with the name: 2b0005c404f2.jpg
3) imagination resizes according to my parameters, but doesn't take the name so the end is:
(my images folder
my_picture.jpg (resized <- imagination did this)
2b0005c404f2.jpg (not resized <- ci upload did this)
I just wish it would take 2b0005c..jpg and overwrite it instead.
My post above about "how i used", if you see the parameters, it's working since it is actually getting the image in the path and resizing, but it's not getting the img name.
Could you give me your opinion of how should i proceed with this?
Do you see the best approach?