Is it possible to independently scale layered assets in an image preset? | Adobe Higher Education
Skip to main content
typehack
Level 2
November 11, 2023
Pergunta

Is it possible to independently scale layered assets in an image preset?

  • November 11, 2023
  • 2 respostas
  • 1482 Visualizações

Hello!

First a little background. I am serving up a Scene7 asset that is made up of two layers, a base image and a play button. The base image layer is a smart crop whose width and height are being constrained by the image preset (1200 x 500). This image preset is also handling the layering of the base layer and the play button.

Here is the code that I am using to manage the layering, cropping, etc.:
&layer=0&fit=crop&layer=1&scale=1&src=URL/play-button-shadow&originN=0,0

This works fine for placing the play button in the center of the background image. 

The issue is that, because the asset is being scaled to fit the image preset, the size of the play button changes with every image.

 

So my question ... is it possible to have one layer of an image preset scale independently from the other layer? If so, how would I do this?

 

Thanks!!

Este tópico foi fechado para respostas.

2 Respostas

Adilos-Cantuerk
Community Advisor
Community Advisor
November 13, 2023

Just an idea, not shure if this solves the issue:
Have you tried to use with (wid=200) and height (hei=50) values for the button, instead of scaling?

typehack
Level 2
November 13, 2023

Thanks for the suggestion!! I did try to do that, but having the wid / hei values in the image modifier ends up resizing the whole asset ... not just the button. Those values replace the "width" and "height" in the image preset. See the attached screen shots. 

 

Adilos-Cantuerk
Community Advisor
Community Advisor
November 14, 2023

I have another idea. Have you tried out templating your combination?
https://landing.adobe.com/en/na/dynamic-media/ctir-2755/dynamic-assets.html

Here you can play with examples.

kautuk_sahni
Community Manager
Community Manager
December 11, 2023

@typehack Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni