Преглед на файлове

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")