ComiciViewerDownloader

Manga downloader specific for Comici Viewer

< Opiniones de ComiciViewerDownloader

Pregunta o comentario

§
Publicado: 19/05/2025

I am downloading from comic-growl and found an issue. If image width is not multiple of four, downloaded image will have transparent pixels on the right side. For example, if width is 1350, only Math.floor(data.width / 4) * 4 = 1348 pixels is valid, and two columns of pixels is transparent. Same could happen if height is not multiple of four. A possible solution is to draw the whole image on canvas before drawing pieces, like this (I am not familiar with js, there could be a better method):

// start unscrambling
context.drawImage(this, 0, 0);

Publicar respuesta

Inicia sesión para responder.

长期地址
遇到问题?请前往 GitHub 提 Issues。