I am currently pushing GC to its limits, I think :-) Hoping someone has some advice for me about the below...
Before I go on, I want to state that I did try Image Crud for this purpose, but it came up short for my needs as well. GC is much more mature, so I figure it will be easier to do in GC than in IC.
I am trying to create image galleries in Facebook style in functionality: first you create a gallery with some meta data, and afterwards you upload images into the gallery. Up to this point I got everything working - GC is powerful like that. :-)
Now comes the problem. I need to intercept the file upload process for the image, because:
1. I need to first process the image uploaded in various ways using CI's image library (max width, max height, etc.).
2. Generate a thumbnail of the uploaded image and save it to a different folder. I need to crop the image to give the thumbnail a fixed with and height across the bank.
IN MY CURRENT REASONING, I am leaning towards using callback_after_insert and callback_after_update to process this AFTER saving the item to the database, and it would most likely be the easiest way to do so, unless someone has a better suggestion for me.
As you can see from the above problem description, GC out of the box will not work to "intercept" the upload process, but can work using my above suggested plan. Is this the best way to do this? Any other suggestions?
Thanks in advance for your replies :-)