Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compress Png Files missing from build settings

I am building an app which has quite a few images in, therefore I have crushed them all using ImageOptim to help decrease the size of my .IPA. How ever the size of my app has not changed at all.

I have looked on their website and they say to turn off Compress Png Files in the Build Settings under Packaging. However that option is not there. I have tried manually adding it into my project.pbxproj but it gets listed under the User Defined section and does not turn it off.

Screenshot of Packaging in Build Settings

I have also tried searching in the Build settings (My main target is selected).

enter image description here

So my question is... how can I add Compress Png Files into my build settings?

like image 670
Swinny89 Avatar asked Oct 12 '15 13:10

Swinny89


People also ask

Why is PNG not showing?

Your Windows Photo Viewer is out of date. Your Windows Photo Viewer needs to be repair or reset. Your PNG file is corrupted. Your PNG file is encrypted.

Does PNG lose quality when compressed?

The biggest advantage of PNG over JPEG is that the compression is lossless, meaning there is no loss in quality each time it is opened and saved again. PNG also handles detailed, high-contrast images well.

How do I compress a PNG without losing transparency?

You can use Save for Web to export your images as 24-bit transparent PNG files and upload them to TinyPNG. We'll convert them to tiny indexed PNG files. You can also install the TinyPNG Photoshop plugin. It allows you to scale, preview and save compressed PNG and JPEG images straight from Photoshop.


2 Answers

It might sound mind blowing, but please read it to the very end.

  1. Try dragging and dropping a dummy png file to your project navigator, then select like "Add, Copy if Needed" and the option will appear in the Packaging section. But, I guess, this is not your case.
  2. It looks like you have all your png's contained in an asset catalog rather that just lying around. For that case, I guess, you might want to play around with this: enter image description here
like image 62
Arthur Gevorkyan Avatar answered Oct 18 '22 15:10

Arthur Gevorkyan


You need to Just Search in Build Setting png And CopyPNG File - Packaging is Searched And The Section Have Option is Compress Png File is The Default value is Yes You will change value NO it Means your png Files is Compressed Bellow is the Screen Shot

enter image description here

like image 23
Nilesh Avatar answered Oct 18 '22 16:10

Nilesh