-
Notifications
You must be signed in to change notification settings - Fork 736
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
Conversation
Codecov Report
@@ 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
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
…olaris assets picker - WIP)
… dialog image preview - WIP)
…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 * fixing local test runs
…for Polaris assets * fixed TeaserImplTest failure
…for Polaris assets * image rendering improvements
…for Polaris assets * more image rendering improvements
…for Polaris assets * fixed build issue
…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
..._root/apps/core/wcm/components/image/v3/image/clientlibs/ngdmsmartcrop/js/smartcropaction.js
Outdated
Show resolved
Hide resolved
..._root/apps/core/wcm/components/image/v3/image/clientlibs/ngdmsmartcrop/js/smartcropaction.js
Outdated
Show resolved
Hide resolved
..._root/apps/core/wcm/components/image/v3/image/clientlibs/ngdmsmartcrop/js/smartcropdialog.js
Outdated
Show resolved
Hide resolved
..._root/apps/core/wcm/components/image/v3/image/clientlibs/ngdmsmartcrop/js/smartcropdialog.js
Show resolved
Hide resolved
..._root/apps/core/wcm/components/image/v3/image/clientlibs/ngdmsmartcrop/js/smartcropdialog.js
Show resolved
Hide resolved
...root/apps/core/wcm/components/image/v3/image/clientlibs/ngdmsmartcrop/js/smartcroppreview.js
Outdated
Show resolved
Hide resolved
...root/apps/core/wcm/components/image/v3/image/clientlibs/ngdmsmartcrop/js/smartcroppreview.js
Outdated
Show resolved
Hide resolved
...root/apps/core/wcm/components/image/v3/image/clientlibs/ngdmsmartcrop/js/smartcroppreview.js
Outdated
Show resolved
Hide resolved
@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); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you need this?
@indra2gurjar , nice work. Thank you. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
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