Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

issue of base64 string size


everrr
 Share

Recommended Posts

hi all, just a new one in pixi.js, im having some issues, any help or suggestion will be appreciated.

1: i have a large image 12.7 MB, after transformed it to base64, chrome dev tools demonstrates the base64 string's length is >17 millions, but if i created a texture with this large image, then call getBase64(), the returned string's size is > 46 millions, what cause such an increase of the base64 string's size?

 

2: my app is almost an image editor,  most of time, i only care about the static image, that's why i only call renderer.render(stage) when i really  need it. but how about this scenario: i have a large image as a background, and on top of it, there is a draggable rectangle, so in the callback onDragMove, i need to render the entire canvas over and over again, in case the image is large image like 13 MB, this will cause the serious performance issue, i am wondering how could i improve or skip this issue, is the issue possible to get solved with only on canvas? some thing like we tell the renderer: hey, please just render container A, not for container B?

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...