Saturday, October 15, 2022
HomeGame DevelopmentCocos Creator 2.4.8 - Asset format dimension - Cocos Creator

Cocos Creator 2.4.8 – Asset format dimension – Cocos Creator


Hello, once I do a construct, the generated pictures within the construct folder are bigger than the unique picture with the identical format.
As an exemple, I’ve this png picture with a dimension of 390KB (earlier than construct).

That is the format setting.

And this is identical picture at construct folder.
image

If I alter the PNG high quality to 99 it solely cut back 2KB, and at high quality 1 it will get a lot bigger.
With none format choice it stays with the unique dimension 390KB.

Any concept on the best way to repair it?


Please ship your image to see, our aspect utilizing this image take a look at isn’t any drawback.
take a look at.png.zip (1.0 KB)

celebrations.zip (380.5 KB)

It is a png picture that has already been compressed and doesn’t have to be compressed utilizing the Compress Textures function in CocosCreator.
Compressing a texture that has already been compressed could lead to a bigger picture.

Sure, however I would like to change to webp when potential and if not use png as fallback.
Is there a technique to not compress however nonetheless use the format switching?

There’s at present no technique to cease the compression. For modifications to the useful resource loading course of, you may think about modifying the engine’s image-asset script.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments