-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: A way to crop the thumbnail #18
Comments
This would be a good feature to add. I can imagine a flag like Currently I think it's achievable as a multi-step procedure, by first using Thumbnex to shrink to either a width or height (see this test case), and then cropping it as a second step. |
I think that could work, but I'd prefer not having to specify which of the sides (height or width) should be shrunk, and have the command figure it out for me. I'm having a hard time articulating the exact needs of such a shrink command, perhaps you can help me. Here are some examples of how it should work (in my mind at least):
|
Those examples make sense. To clarify my comment, I agree that a single operation would be ideal, instead of the multi-step operation that it currently requires. Assuming we're talking still images, not animated GIFs, there is likely an analogous command in ImageMagick that does similar to the ffmpeg command you posted. My ImageMagick knowledge is very rusty but it's possible the Mogrify wrapper library, which this Thumbnex lib depends on, already has a single command that does the resizing and cropping. If so we'd just need to add an option flag in Thumbnex to use the right command. |
I think the following ImageMagick command is equivalent:
Note that ImageMagick, contrary to ffmpeg, does not by default crop to the middle of the image, so the |
Thank you for making this nifty little library!
I would like to make thumbnails that are exactly the specified size, e.g. 180x180 pixels. I would like to do so in a way that first resizes the image to kinda-fit, and then crops it to the specified size. I've fiddled a bit with ffmpeg, and I believe this command fits my needs:
Is this something you'd be interested in supporting?
The text was updated successfully, but these errors were encountered: