Generate different sizes with "ionic resource --resouce_name"?


#1

It’s possible to generate different size of a resource with ionic resource CLI ?
I put some resources inside resource folder and I executed the ionic resource but only icon and splash are generated.


#2

Hi @selmanon, what other resources are you thinking about?


#3

every .png is a resource :slight_smile:


#4

sry, maybe I formulated my question wrong :wink: I was wondering why you would want any other resources to be resized? For what purpose?

If you use an img in your application, it is best is to use simple css to restyle it according to your needs.


#5

in Android as iOS every resource must have it’s different size ldpi/mdpi/xhdpi/… I don’t think if css can do that ?


#6

You can style you apps differently for iOS and android. Maybe this helps?

https://ionicframework.com/docs/platform-customization/platform-classes.html