vefcpa.blogg.se

Javascript pixi.js image compress
Javascript pixi.js image compress










javascript pixi.js image compress

JAVASCRIPT PIXI.JS IMAGE COMPRESS CODE

Moreover, TexturePacker is especially slow when changing the anchor point fo several sprites at the same time, I think you can do betterīy the way, I just briefly tested the latest release (windows 64bits), and the polygon algorithm seems to not work with multipacking. Code 113 commits Failed to load latest commit information. At the moment not looking and server side solution. You can use mipmapping in webgl and compress your textures to dds/pvr formats.

javascript pixi.js image compress

Do you see what I mean ?Īnother very important feature for me is the ability to set the anchor point position (manually or automatically for center, borders and corners), including for several sprites at the same time. Pixi.js Reduce image resolution Reduce image resolution. For instance, if I have a single project with many smart folders so that then can not fit on one single spritesheet, TexturePacker will dispatch sprites of the same animation on several different spritesheets while for performance reasons they should be preferably kept together on the same spritesheet, even if it means losing some space. One thing that always bugged me in TexturePacker is that there is no way to group sprites in the same project so that when it is multipacking, it preferably put these sprites together. creating several spritesheet in one project if one spritesheet is not enough for all imported images). I have a feature suggestion: I saw that you already started to support multipacking as TexturePack does (i.e. Generally use this to precompress a image on the client side before uploading it. It is so nice to see that open source tools are developped for cocos2d which is an open source engine.ĭo you intend to keep it open source forever? Uses the Browsers native canvas.toBlob API to do the compression work, which means it is lossy compression, asynchronous, and has different compression effects in different browsers.












Javascript pixi.js image compress