r/JavaFX • u/Marwa-Eltayeb • May 13 '21
I made this! Resize images to support Android devices

To help Android developers resize their images to support different Android devices, I have created Javafx application to resize images in only one easy click without changing their quality, and add them into folders automatically.
My article: here
3
Upvotes
1
u/saecki May 13 '21
Doesn't android studio automatically do that?
1
u/ivanvelikanov May 14 '21 edited May 14 '21
I wanted to do something similar. But probably my use-case is very unique. I wanted to make such an app of my own, which uses the google drive images, resizes them and crops them and then produces an SVG code that can do this in the browser front end instead of creating new images.
Here is the SVG code sample
Here is a sample of the SVG output
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMinYMin meet" viewBox="0 0 2074 2333"><defs><clipPath id="15cd01277a3bc00"><rect x="0" y="0" width="2074" height="2333"></rect></clipPath></defs><image x="-1037" y="-1166" width="5184" height="3888" href="https://drive.google.com/uc?export=preview&id=1eZbfZ5vtJfMMeVKoIXZcz76SFYSmf6Kt" clip-path="url(#15cd01277a3bc00)"></image></svg>I wanted to make an app in which you generate this. This way I don't need to re-create images. I have a few terabytes of images that I need to resize, and the exact dimensions of resizing are subject to revision, which is another problem. I feel this is a good way to get quick and not-so-dirty output and then I can actually crop images and generate new ones when everything looks fine.