junchenChow / ImgResize

Auto resize image(png/jpeg) for ios/android/flutter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ImgResize

Resize 4x image(png/jpeg) for ios/android/flutter

Move application (ImgResize.exe for windows, ImgResize_mac_os for mac os) to image folder and execute it.

Will resize image to 3x and 2x and 1.5x and 1x and generate png file to android/flutter/ios folder.

Filetree

📦example
 ┣ 📜cat1.jpg
 ┣ 📜cat2.jpg
 ┣ 📜cat3.jpg
 ┣ 📜ImgToMobile.exe
 ┗ 📜ImgToMobile_mac_os

become to

📦example
 ┣ 📂android
 ┃ ┣ 📂drawable-hdpi
 ┃ ┃ ┣ 📜cat1.png
 ┃ ┃ ┣ 📜cat2.png
 ┃ ┃ ┗ 📜cat3.png
 ┃ ┣ 📂drawable-mdpi
 ┃ ┃ ┣ 📜cat1.png
 ┃ ┃ ┣ 📜cat2.png
 ┃ ┃ ┗ 📜cat3.png
 ┃ ┣ 📂drawable-xhdpi
 ┃ ┃ ┣ 📜cat1.png
 ┃ ┃ ┣ 📜cat2.png
 ┃ ┃ ┗ 📜cat3.png
 ┃ ┣ 📂drawable-xxhdpi
 ┃ ┃ ┣ 📜cat1.png
 ┃ ┃ ┣ 📜cat2.png
 ┃ ┃ ┗ 📜cat3.png
 ┃ ┗ 📂drawable-xxxhdpi
 ┃ ┃ ┣ 📜cat1.png
 ┃ ┃ ┣ 📜cat2.png
 ┃ ┃ ┗ 📜cat3.png
 ┣ 📂flutter
 ┃ ┣ 📂1.5x
 ┃ ┃ ┣ 📜cat1.png
 ┃ ┃ ┣ 📜cat2.png
 ┃ ┃ ┗ 📜cat3.png
 ┃ ┣ 📂2.0x
 ┃ ┃ ┣ 📜cat1.png
 ┃ ┃ ┣ 📜cat2.png
 ┃ ┃ ┗ 📜cat3.png
 ┃ ┣ 📂3.0x
 ┃ ┃ ┣ 📜cat1.png
 ┃ ┃ ┣ 📜cat2.png
 ┃ ┃ ┗ 📜cat3.png
 ┃ ┣ 📂4.0x
 ┃ ┃ ┣ 📜cat1.png
 ┃ ┃ ┣ 📜cat2.png
 ┃ ┃ ┗ 📜cat3.png
 ┃ ┣ 📜cat1.png
 ┃ ┣ 📜cat2.png
 ┃ ┗ 📜cat3.png
 ┣ 📂ios
 ┃ ┣ 📂cat1.imageset
 ┃ ┃ ┣ 📜cat1.png
 ┃ ┃ ┣ 📜cat1@2x.png
 ┃ ┃ ┣ 📜cat1@3x.png
 ┃ ┃ ┗ 📜Contents.json
 ┃ ┣ 📂cat2.imageset
 ┃ ┃ ┣ 📜cat2.png
 ┃ ┃ ┣ 📜cat2@2x.png
 ┃ ┃ ┣ 📜cat2@3x.png
 ┃ ┃ ┗ 📜Contents.json
 ┃ ┗ 📂cat3.imageset
 ┃ ┃ ┣ 📜cat3.png
 ┃ ┃ ┣ 📜cat3@2x.png
 ┃ ┃ ┣ 📜cat3@3x.png
 ┃ ┃ ┗ 📜Contents.json
 ┣ 📜cat1.jpg
 ┣ 📜cat2.jpg
 ┣ 📜cat3.jpg
 ┣ 📜ImgToMobile.exe
 ┗ 📜ImgToMobile_mac_os

Use this resize package to resize image.

Use lossypng to compression image.

About

Auto resize image(png/jpeg) for ios/android/flutter

License:MIT License


Languages

Language:Go 100.0%