gdg-berlin-android / ZeBadge

It is time for a new badge to see the light of the day, full with delight and android programming capabillities.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Seam Carving for Content Aware Resizing

mariobodemann opened this issue · comments

Is your feature request related to a problem? Please describe.

When resizing an image to for into the restrictions of ZeBadge, we loose s lot of content from the original image. Please investigate how Seam Carving can be used to increase the content depth and readability of images.

Describe the solution you'd like
An image put into this algorithm should be clearly legible on ZeBadge, no matter it's original size. A good algorithm also favors non skin colors for carving, to preserve faces and not to distort them.

Describe alternatives you've considered
Black white/dithering aware scaling might also be a good idea, currently Sean Carving would be applied before reducing the colors.

Additional context
The result of the carving can also be used to extend the image by duplicating the minimal found pixels, and a classical resize might be needed before Seam carving.

Also also: consider applying the same algorithm horizontally and vertically in succession/alteration to get the desired tiny image.

Good luck.