Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SITES-13120 - Image Smart Crop support for remote assets in various Sites core components #2524

Merged
merged 40 commits into from
Jul 19, 2023

Conversation

indra2gurjar
Copy link
Contributor

@indra2gurjar indra2gurjar commented Jun 9, 2023

Q                       A
Fixed Issues? SITES-13120
Patch: Bug Fix?
Minor: New Feature? SITES-13120
Major: Breaking Change? No
Tests Added + Pass? Yes
Documentation Provided Yes (code comments and or markdown)
Any Dependency Changes? No
License Apache License, Version 2.0

Adding smartcrop functionility to NextGen dynamic media images.
Added a new smartcrop button which will open only when a NGDM image is selected.
On clicking the button, a dialog will open with UI for taking user input for smartcrop aspect ratios and image preview showing the smartcrop.

ngdm-smartcrop.mov

@codecov
Copy link

codecov bot commented Jun 12, 2023

Codecov Report

Merging #2524 (ab600c3) into main (ce27843) will increase coverage by 0.03%.
The diff coverage is 90.10%.

❗ Current head ab600c3 differs from pull request most recent head 527fa4b. Consider uploading reports for the commit 527fa4b to get more accurate results

@@             Coverage Diff              @@
##               main    #2524      +/-   ##
============================================
+ Coverage     87.27%   87.31%   +0.03%     
- Complexity     2623     2645      +22     
============================================
  Files           229      232       +3     
  Lines          6986     7063      +77     
  Branches       1060     1071      +11     
============================================
+ Hits           6097     6167      +70     
- Misses          358      359       +1     
- Partials        531      537       +6     
Impacted Files Coverage Δ
...s/internal/models/v3/NextGenDMImageURIBuilder.java 87.93% <87.93%> (ø)
...nts/internal/models/v3/NextGenDMThumbnailImpl.java 91.30% <91.30%> (ø)
.../core/components/internal/models/v3/ImageImpl.java 95.09% <100.00%> (+1.57%) ⬆️
...omponents/models/nextgendm/NextGenDMThumbnail.java 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@indra2gurjar indra2gurjar marked this pull request as ready for review June 13, 2023 05:39
@indra2gurjar indra2gurjar changed the title Sites 13120 Sites-13120 : Image Smart Crop support for NGDM images. Jun 13, 2023
edoardo-goracci and others added 26 commits June 22, 2023 11:24
…for Polaris assets

 * removed polarisImage hidden field from Image component edit dialog
- Changed the dependency from com.adobe.cq.ui.commons to optional (will be removed when the service pack will be released)
…for Polaris assets

 * use fileReference property also for Polaris images
 * enabled Polaris support for Image component
…for Polaris assets

 * remove URL params from JCR for Polaris images, they are added on URL rendering
…for Polaris assets

 * fixed Polaris image rendering in Teaser component
…for Polaris assets

 * fixed TeaserImplTest failure
…for Polaris assets

 * image rendering improvements
…for Polaris assets

 * more image rendering improvements
…for Polaris assets

 * enabled AEM 6.5 SP 17
 * added unit test for TeaserImpl v2 changes
…for Polaris assets

 * added unit tests for ImageImpl v3 changes
@indra2gurjar
Copy link
Contributor Author

@LSantha @cbogdan0707 I tried incorporating your review feedback. Could you please review?

@@ -72,7 +72,8 @@ public void testNgdmImage() throws ClientException {
Assert.assertEquals(1, images.size());
Element img = images.first();
String imageSource = img.attr("src");
Assert.assertEquals("https://testrepository/adobe/dynamicmedia/deliver/urn:aaid:aem:e82c3c87-1453-48f5-844b-1822fb610911/cutfruits.png?width=640&preferwebp=true", imageSource);
System.out.println(imageSource);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need this?

@LSantha
Copy link
Contributor

LSantha commented Jul 18, 2023

@indra2gurjar , nice work. Thank you.

@sonarcloud
Copy link

sonarcloud bot commented Jul 19, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@LSantha LSantha merged commit b49e22c into adobe:main Jul 19, 2023
8 checks passed
@LSantha LSantha added this to the 2.23.2 milestone Jul 26, 2023
@LSantha LSantha changed the title Sites-13120 : Image Smart Crop support for NGDM images. SITES-13120 - Image Smart Crop support for remote assets in various Sites core components Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants