Skip to content

Conversation

@z38
Copy link
Contributor

@z38 z38 commented Mar 16, 2015

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 added 2 commits March 17, 2015 19:39
In order to be consistent with other libraries, the option should be named `--outbound` as the image overflows the given boundaries.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant