fix anim webp load for some sizes
rounding on resize for each frame needs to match resize for whole image
This commit is contained in:
parent
b1c995b2d9
commit
bcdaeca578
@ -637,12 +637,14 @@ read_next_frame( Read *read )
|
|||||||
printf( "read_next_frame:\n" );
|
printf( "read_next_frame:\n" );
|
||||||
#endif /*DEBUG*/
|
#endif /*DEBUG*/
|
||||||
|
|
||||||
/* Area of this frame, in output image coordinates.
|
/* Area of this frame, in output image coordinates. We must rint(),
|
||||||
|
* since we need the same rules as the overall image scale, or we'll
|
||||||
|
* sometimes have missing pixels on edges.
|
||||||
*/
|
*/
|
||||||
area.left = read->iter.x_offset * read->scale;
|
area.left = VIPS_RINT( read->iter.x_offset * read->scale );
|
||||||
area.top = read->iter.y_offset * read->scale;
|
area.top = VIPS_RINT( read->iter.y_offset * read->scale );
|
||||||
area.width = read->iter.width * read->scale;
|
area.width = VIPS_RINT( read->iter.width * read->scale );
|
||||||
area.height = read->iter.height * read->scale;
|
area.height = VIPS_RINT( read->iter.height * read->scale );
|
||||||
|
|
||||||
/* Dispose from the previous frame.
|
/* Dispose from the previous frame.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user