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

Cropping Image Renditions Instead of Scaling

Avatar

Avatar
Springboard
Level 2
JonMaguire
Level 2

Likes

2 likes

Total Posts

24 posts

Correct Reply

0 solutions
Top badges earned
Springboard
Validate 1
Give Back
Ignite 1
Establish
View profile

Avatar
Springboard
Level 2
JonMaguire
Level 2

Likes

2 likes

Total Posts

24 posts

Correct Reply

0 solutions
Top badges earned
Springboard
Validate 1
Give Back
Ignite 1
Establish
View profile
JonMaguire
Level 2

15-09-2017

Is there an OOTB way in AEM 6.2 to crop image renditions on upload similar to how Wordpress handles renditions?  Currently the workflow is just resizing the image.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 10
Level 4
mjb54261515
Level 4

Likes

33 likes

Total Posts

132 posts

Correct Reply

32 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 25
View profile

Avatar
Validate 10
Level 4
mjb54261515
Level 4

Likes

33 likes

Total Posts

132 posts

Correct Reply

32 solutions
Top badges earned
Validate 10
Validate 1
Boost 5
Boost 3
Boost 25
View profile
mjb54261515
Level 4

03-11-2017

I dont think OOTB provides croping image renditions by default similar to wordpress.

we have similar issue when migrating from wordpress to aem. The ACS AEM Commons Named Transform Image Servlet allows specific image transforms to be defined centrally via OSGi configurations. It has ability to Crop the image to the specified bounds.

Named Transform Image Servlet

1340251_pastedImage_0.png

Only issue I faced using this your use case/ component cropping bounds has be analyised before hard coding(this can be changed at any time in fly since this is OSGI configs) and acs-commons version(we were using much lower version by then).

If this also not solve your use case then you have to go for custom logic to handle new cropped image rendition

Answers (1)

Answers (1)

Avatar

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,198 likes

Total Posts

6,369 posts

Correct Reply

1,147 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,198 likes

Total Posts

6,369 posts

Correct Reply

1,147 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile
kautuk_sahni
Community Manager

03-11-2017

Moving this thread to AEM Assets!!