简体   繁体   English

PreloadJS加载部分图像

[英]PreloadJS Loading Partial Image

I'm using PreloadJS to load images for an animation. 我正在使用PreloadJS加载动画图像。 The majority of the time it works great, but sometimes a single image (frame) is only loaded 10% of the way in the blob that PreloadJS creates. 大多数情况下,它运行良好,但是有时单个图像(帧)仅以PreloadJS创建的Blob的10%方式加载。 I am passing an array of files as a manifest into queue.loadManifest(manifestName) Any idea what could be causing this and is there any way to prevent it? 我正在将文件清单作为清单传递到queue.loadManifest(manifestName)知道是什么原因造成的,有什么办法可以防止它发生? Thanks. 谢谢。

Are your images squared? 您的图像是否平方?

I had this problem once, the loading was failing(or partially working) because my images was way too long (the width was "neglectable" compared to the height). 我曾经遇到这个问题,由于我的图像太长(宽度与高度相比“可以忽略”),加载失败(或部分起作用)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM