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:
John Cupitt 2019-05-01 16:34:58 +01:00
parent b1c995b2d9
commit bcdaeca578
1 changed files with 7 additions and 5 deletions

View File

@ -637,12 +637,14 @@ read_next_frame( Read *read )
printf( "read_next_frame:\n" );
#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.top = read->iter.y_offset * read->scale;
area.width = read->iter.width * read->scale;
area.height = read->iter.height * read->scale;
area.left = VIPS_RINT( read->iter.x_offset * read->scale );
area.top = VIPS_RINT( read->iter.y_offset * read->scale );
area.width = VIPS_RINT( read->iter.width * read->scale );
area.height = VIPS_RINT( read->iter.height * read->scale );
/* Dispose from the previous frame.
*/