@@ -1705,6 +1705,8 @@ Napi::Value pipeline(const Napi::CallbackInfo& info) {
17051705 }
17061706 baton->withExifMerge = sharp::AttrAsBool (options, " withExifMerge" );
17071707 baton->timeoutSeconds = sharp::AttrAsUint32 (options, " timeoutSeconds" );
1708+ baton->loop = sharp::AttrAsUint32 (options, " loop" );
1709+ baton->delay = sharp::AttrAsInt32Vector (options, " delay" );
17081710 // Format-specific
17091711 baton->jpegQuality = sharp::AttrAsUint32 (options, " jpegQuality" );
17101712 baton->jpegProgressive = sharp::AttrAsBool (options, " jpegProgressive" );
@@ -1774,13 +1776,6 @@ Napi::Value pipeline(const Napi::CallbackInfo& info) {
17741776 baton->jxlEffort = sharp::AttrAsUint32 (options, " jxlEffort" );
17751777 baton->jxlLossless = sharp::AttrAsBool (options, " jxlLossless" );
17761778 baton->rawDepth = sharp::AttrAsEnum<VipsBandFormat>(options, " rawDepth" , VIPS_TYPE_BAND_FORMAT);
1777- // Animated output properties
1778- if (sharp::HasAttr (options, " loop" )) {
1779- baton->loop = sharp::AttrAsUint32 (options, " loop" );
1780- }
1781- if (sharp::HasAttr (options, " delay" )) {
1782- baton->delay = sharp::AttrAsInt32Vector (options, " delay" );
1783- }
17841779 baton->tileSize = sharp::AttrAsUint32 (options, " tileSize" );
17851780 baton->tileOverlap = sharp::AttrAsUint32 (options, " tileOverlap" );
17861781 baton->tileAngle = sharp::AttrAsInt32 (options, " tileAngle" );
0 commit comments