Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Scene7 is not giving desired image size in square and rectangle mode

Avatar

Avatar
Give Back
Level 1
priyanshis83175
Level 1

Likes

2 likes

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Give Back
Boost 1
View profile

Avatar
Give Back
Level 1
priyanshis83175
Level 1

Likes

2 likes

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Give Back
Boost 1
View profile
priyanshis83175
Level 1

19-05-2020

As part of business requirement , we need two modes square(360*360) and landscape(400*192) of same image (actual image dimension is 1000*1000) . 

  1. We created image presets(wid & hei parameters added) & found that we will get white background appended on the border of image if actual image is landscape & we are trying to retrieve square image & vice versa .
  2. So to remove white background,  we applied format alpha-png which helped us in removing transparent background but created another problem of reduced image size.
  3. In order to prevent small size image & white background, we appended scl=1 in image url  which cropped the image to desired size & also removed the original content of image.

Is there any solution using which we can get image required size of image without any above mentioned problems.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Establish
Level 3
FreedomMarketin
Level 3

Likes

24 likes

Total Posts

27 posts

Correct Reply

22 solutions
Top badges earned
Establish
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Establish
Level 3
FreedomMarketin
Level 3

Likes

24 likes

Total Posts

27 posts

Correct Reply

22 solutions
Top badges earned
Establish
Boost 5
Boost 3
Boost 10
Boost 1
View profile
FreedomMarketin
Level 3

19-05-2020

There's are 2 low-tech solutions and 1 high-tech.

 

First, the easy high-tech solution: if you're licensed for Dynamic Media and using dynamicmedia_scene7 runmode, use Smart Cropping. This is awesome new tech that allows aspect ratios to be adjusted with Sensei. You can configure this under image profiles.  Documentation here: https://docs.adobe.com/content/help/en/experience-manager-65/assets/dynamic/image-profiles.html

 

Low-tech option 1: Only specify one dimension.  In your case, you'd specify the width and leave the height blank to let it float.  That won't get you the exact dimension you want if the source asset is a different aspect ratio, but without smart cropping, there really aren't good options.

 

Low-tech option 2: add fit=constrain to the image modifier section.  This will instruct Dynamic media to basically do low-tech option #1, but will float either the height or the width depending on which will work better in the specified dimensions.

 

Hope this helps!

Beau

Answers (2)

Answers (2)

Avatar

Avatar
Boost 5
Level 2
kerr
Level 2

Likes

13 likes

Total Posts

16 posts

Correct Reply

1 solution
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 1
View profile

Avatar
Boost 5
Level 2
kerr
Level 2

Likes

13 likes

Total Posts

16 posts

Correct Reply

1 solution
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 1
View profile
kerr
Level 2

22-09-2020

Hi priyanshis83175,

 

can you please confirm if the image is transparent? also have you tried appending the URL with the parameter "bgc= " (back ground color) with the desired color?

Avatar

Avatar
Boost 5
Level 2
kerr
Level 2

Likes

13 likes

Total Posts

16 posts

Correct Reply

1 solution
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 1
View profile

Avatar
Boost 5
Level 2
kerr
Level 2

Likes

13 likes

Total Posts

16 posts

Correct Reply

1 solution
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 1
View profile
kerr
Level 2

12-06-2020

Could you share an example url?