ionic-cli icon indicating copy to clipboard operation
ionic-cli copied to clipboard

ionic resources gerenating black background for iOS

Open chrisbenseler opened this issue 11 years ago • 12 comments

I'm following instructions from http://ionicframework.com/docs/cli/icon-splashscreen.html to generate icons for both Android and iOS app.

I have a psd with the icon and some of it is transparent. For Android it's ok, the icon appears with the transparency. In iOS (on iPhone 5, iOS version 8.3), what is transparent appears black. I thinthis is because iOS doesn't show transparent icons, it's always a full square. How can I generate the icon with white color on the bg, instead of black, for iOS? Is it something I have to do when I'm working on the .psd file?

chrisbenseler avatar Aug 03 '15 17:08 chrisbenseler

I know IOS doesnt take a transparent background but I am trying to find out if its possible to change the default background color for the IOS icons.

Ross-Rawlins avatar Aug 25 '15 08:08 Ross-Rawlins

@Duovili I exported a .png file with blank bg into the resources/ios folder and then generated the icons for iOS. It worked ok. If the ionic-cli had an parameter to replace the transparency with a certain color, it would be great. I know that with imagemagick it's possible (http://stackoverflow.com/questions/2322750/replace-transparency-in-png-images-with-white-background), but I don't know what the resources generator from Ionic use to handle the images.

chrisbenseler avatar Aug 25 '15 11:08 chrisbenseler

Greetings @chrisbenseler!

I've closed this issue because my sensors indicated it was old and inactive, and may have already been fixed in recent versions of Ionic. However, if you are still experiencing this issue, please feel free to reopen this issue by creating a new one, and include any examples and other necessary information, so that we can look into it further.

Thank you for allowing me to assist you.

adamdbradley avatar Dec 30 '15 08:12 adamdbradley

Still generating black background. I mean, seriously, why do you publish a feature that is useless ;( What to include? Just create a transparent png icon and run ionic resources icon --force and see the result.

barocsi avatar Mar 01 '16 14:03 barocsi

+1 Same here on ios ... PNG with Black Background (icon and splash)

johnfakeacc avatar Apr 13 '16 10:04 johnfakeacc

Same here on iOS.

elineopsommer avatar Jun 01 '16 13:06 elineopsommer

Any solution ?

flastowizka avatar Aug 12 '16 00:08 flastowizka

Same here with the app icon on iOS.

niklaszantner avatar Jan 09 '17 09:01 niklaszantner

Still having this problem ios, android - my only workaround was to point directly to my icon.png from resources

tHesTx avatar Mar 20 '17 10:03 tHesTx

@adamdbradley.... the issue is not fixed, I have the same problem as many others... "may have already been fixed in recent versions of Ionic" ...? did you verify before closing it?

torontom avatar Jun 16 '17 18:06 torontom

same here too

piyanatn avatar Jul 16 '17 01:07 piyanatn

It's default behaviour for iOS. Should be opaque.

Check out docs they explain how you can generate icon per platform easily: http://blog.ionic.io/automating-icons-and-splash-screens/

Platform Specifics Want different icons for the iOS and Android versions of your app? No problem; we’ve got that covered, too. To use different source images for individual platforms, place the source image in the respective platform’s directory. To use a different icon for Android, the image should follow this path: resources/android/icon.png, and the image for iOS should use this path: resources/ios/icon.png. This way, you can have an iOS icon with native rounded corners and an Android icon with a transparent background.

ryandegruyter avatar Jul 28 '17 14:07 ryandegruyter