3 ms·
It has smart crop based on entropy, ability to compare images, and bezier curves for GD which none of the existing libs have. Other libs are "image manipulation
by vatotemking 10y ago
It has smart crop based on entropy, ability to compare images, and bezier curves for GD which none of the existing libs have. Other libs are "image manipulation" this one aims to be an "image processing" lib. Also we need libs instead of new programming languages.
- amelius 10y agoToo many features in one library, for my taste. It would have been better to keep the smart cropping and comparing in separate libraries so other environments (nodejs etc) can benefit from them as well.
- allendoerfer 10y agoI have gone through the code before he commented here to see how he did the smart cropping (1. create histogram, 2. calculate entropy) and think he could have maybe made the histogram and the entropy calculation available as separate libraries or use an existing one, but they are not too big either and I think the use cases would anyway involve some sort of image processing most of the time. The interface to crop smartly definitely belongs in an image library, especially when it is a wrapper around a native program focused on easy of use and a clean interface.
- vatotemking 10y agoWell the field of "image processing" is big[0]. As oppose to what we are used to in php world which is just "image manipulation" (resize, crop, save to different image formats) in the context of web apps. > so other environments (nodejs etc) The algos are in github you can convert it to JS if you want. Theyre both C based so syntax is not that different. If you are looking for node.js version there is already smartcrop.js. [0] - https://en.wikipedia.org/wiki/Digital_image_processing https://en.wikipedia.org/wiki/Digital_image_processing