In CakePHP, what is the best upload / change component you used?

Im looking for something that can belong to many many models and, fortunately, has all the built-in resizing functions.

Surprised if there are any good offers, I do not want to choose the wrong one.

Or is it just worth building my own?

+4
source share
4 answers

I wrote a pretty nice image upload component a few years ago for Cake 1. I have no clue where the code these days is, but my friend Coa wrote a little later:

http://labs.iamkoa.net/2007/10/23/image-upload-component-cakephp/

http://labs.iamkoa.net/2007/11/06/multiple-image-uploads-into-single-mysql-table-cakephp/

You may be able to hack. It handles loading, resizing (resizing, cropping, resizing, then cropping, max, mix), and if I remember correctly, it can even do filters (flipping, inverse, greyscale).

I also ported the code to the Zend environment (and PEAR file names) for my new content management framework. All of this is now much better (everything I mentioned above is well documented). You can download it here (look at the ImageManipulator class. I think the FileUploader class has a dependency on my String utils class, which you can easily remove if you want to use this.

Otherwise, I say, scan yours. The component architecture in Cake at first confused me, so this could be good XP training if you still don't know it. If you do, you can just grab someones loader and convert it into a component for your Cake application.

+3
source
+2
source

How to get EXIF ​​/ Meta information for an image?

0
source

Source: https://habr.com/ru/post/1304665/


All Articles