Skip to content

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

License

Notifications You must be signed in to change notification settings

KNightING/ImgResize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages