Taiko2k / Avvie

A GTK app for quick image cropping :flower_playing_cards:
GNU General Public License v3.0
159 stars 19 forks source link

Custom dimensions (ratio and pixel resolution) #15

Closed stpnwf closed 2 years ago

stpnwf commented 3 years ago

I would suggest a custom button be added where the user has the option to either type a custom ratio (4:3, 20:9, etc ) or a size in pixels (1,546 x 423 pixels, etc)

Case for custom ratios: It is currently hard to crop to 20:9, 9:16, 4:3 and other ratios that are not the ones available in the app. Case for custom pixel resolution: Useful when users need image crops that have weird ratios, such as banners for websites.

maniaxuk commented 2 years ago

Posting to add my support for custom dimensions

I'm trying to create a collection of cropped images to be used with superpaper (wallpaper manager) to span across a laptop screen + an external monitor the combined resolution of which is 3286x1080 + some additional width to make use of the bezel allowance feature superpaper has

Avvie seemed like the perfect tool to quickly export crops from much larger images (sometimes multiple crops from the same source image) except for the fact that each time I load a new source image the size of the crop resets which is...annoying to say the least especially as some of the source images I want to use are very large which makes using the free rectangle option very clumsy as the crop size jumps by 100's of pixels with the slightest mouse movement

Having a user definable crop size (that can be set as the default) seems like a no brainer to be honest as it would cater for ANY size rather than the select few predefined sizes Avvie currently knows about


As an alternative (temporary) work around...

Where are the predefined dimensions stored?

Are they in an easily editable file?

I'm happy to have a rummage through a config file to change one of the predefined sizes to meet my needs, as long as the displayed crop overlay and resulting cropped images are correct I don't care if the labels in the application aren't right

Taiko2k commented 2 years ago

There's currently no way to edit the built in ratios as they're hard coded. I'll take a look at resolving these issues sometime before the upcoming version 2.0 release.

Taiko2k commented 2 years ago

Okay I've now committed the following changes:

Btw I plan to make a new release version of Avvie which will include these changes later this month.