epeg icon indicating copy to clipboard operation
epeg copied to clipboard

Add option to crop after scaling

Open z38 opened this issue 10 years ago • 0 comments

This PR adds a new option -r|--crop to crop the image after scaling. To implement this feature a new API call epeg_crop_set(Epeg_Image *im, int top, int bottom, int left, int right).

With this option, epeg can create thumbnails which are always of the same size (e.g. to be used for photo galleries).

Example

In addition I renamed --inset to --outbound as most libraries tend to name the option like this.

Feel free to close this PR if this feature is not needed for most users or the implementation isn't well-coded.

z38 avatar Mar 16 '15 14:03 z38