Skip to content

Commit

Permalink
Rebase artifacts.
Browse files Browse the repository at this point in the history
  • Loading branch information
tonytw1 committed Oct 11, 2024
1 parent 2c6fc37 commit 568604e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions media-api/app/lib/ImageResponse.scala
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import com.gu.mediaservice.model.usage._
import lib.ImageResponse.extractAliasFieldValues
import lib.elasticsearch.SourceWrapper
import lib.usagerights.CostCalculator
import org.apache.commons.codec.binary.Base64
import org.joda.time.DateTime
import play.api.libs.functional.syntax._
import play.api.libs.json._
Expand Down Expand Up @@ -275,6 +276,7 @@ class ImageResponse(config: MediaApiConfig, s3Client: S3Client, usageQuota: Usag
val orientationCorrection = orientationMetadata.map(o => Seq("rotate:" + o.orientationCorrection())).getOrElse(Seq.empty)
val pathComponents = resizing ++ orientationCorrection :+ base64EncodedSourceURL
pathComponents.mkString("/")
}

def makeOptimisedPngImageopsUri(uri: URI): String = {
config.imgopsUri + List(uri.getPath, uri.getRawQuery).mkString("?") + "{&w, h, q}"
Expand Down

0 comments on commit 568604e

Please sign in to comment.