Skip to content

Latest commit

 

History

History
90 lines (81 loc) · 2.14 KB

README.md

File metadata and controls

90 lines (81 loc) · 2.14 KB

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
 ┃ ┃ ┣ 📜[email protected]
 ┃ ┃ ┣ 📜[email protected]
 ┃ ┃ ┗ 📜Contents.json
 ┃ ┣ 📂cat2.imageset
 ┃ ┃ ┣ 📜cat2.png
 ┃ ┃ ┣ 📜[email protected]
 ┃ ┃ ┣ 📜[email protected]
 ┃ ┃ ┗ 📜Contents.json
 ┃ ┗ 📂cat3.imageset
 ┃ ┃ ┣ 📜cat3.png
 ┃ ┃ ┣ 📜[email protected]
 ┃ ┃ ┣ 📜[email protected]
 ┃ ┃ ┗ 📜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.