Переглянути джерело

processing.transformAnimated doesn't need imgdata

DarthSim 1 місяць тому
батько
коміт
7aec46f146
1 змінених файлів з 1 додано та 2 видалено
  1. 1 2
      processing/processing.go

+ 1 - 2
processing/processing.go

@@ -387,7 +387,7 @@ func transformImage(
 	asAnimated bool,
 ) error {
 	if asAnimated {
-		return transformAnimated(ctx, img, po, imgdata)
+		return transformAnimated(ctx, img, po)
 	}
 
 	return mainPipeline.Run(ctx, img, po, imgdata)
@@ -397,7 +397,6 @@ func transformAnimated(
 	ctx context.Context,
 	img *vips.Image,
 	po *options.ProcessingOptions,
-	imgdata imagedata.ImageData,
 ) error {
 	if po.Trim.Enabled {
 		log.Warning("Trim is not supported for animated images")