-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[6.1] make media action crop aspect ratio configurable #46421
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
base: 6.1-dev
Are you sure you want to change the base?
[6.1] make media action crop aspect ratio configurable #46421
Conversation
Co-authored-by: Brian Teeman <[email protected]>
Co-authored-by: Brian Teeman <[email protected]>
|
Thank you for fixing those errors |
|
I have tested this item ✅ successfully on d79e1f7 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46421. |
|
Sadly, @hans2103 when applying Download package on Joomla 6.1 Nightly downloaded 30 minutes ago on PHP 8.4.15, I get: An error has occurred. (changed to PHP 8.3 and same result ;() Testing process: Fresh Nightly install, Checked BEFORE condition of PR which were a match |
|
@hans2103 System tests would need some adjustment for this PR. See https://github.com/joomla/joomla-cms/actions/runs/19510792565/job/55849853256?pr=46421 : And later those fail: |
|
The system tests are correct! |
|
@exlemor you are correct. The XML is wrong as identified by the system tests |
This reverts commit d79e1f7.
the issue was caused by commit d79e1f7 |
|
Sorry I must have been incorrect. Clearly when there is a subform you dont close the field as I had assumed |
Solved issue with commit c76424f |
@brianteeman I don't know... out of scope for my PR. That has been the case for the last 7 years already |
The initial values where copied from the original. The original values where hard coded.
I do not think that the default settings are rounded... otherwise 16:9 would have been rounded to 1.7777777777777778 with commit f751bd2 I have adjusted the default settings. No more odd / confusing / unexpected behavior and the same output as the calculator |
|
Thanks. I admit I never used it before as I have an odd ratio on my site. Now I can use it. I still think default and none are confusing |
I do agree on the confusing part, but that is out of scope of this PR. |
|
on dark mode the button outline becomes "invisible" because you have succes on succes with same color. Maybe change the copy button to btn-primary? |
for better readability on dark mode
|
I have tested this item ✅ successfully on 0a2c785 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46421. |









Pull Request for no issue
Summary of Changes
This PR will add a subform to plugin media-action/crop to give you the option to configure your own aspect-ratios.
With this PR merged I am able to create a own set of aspect ratios.
Testing Instructions
Go To System > Plugins > Media-Action = Crop and notice the lack of options
Go To Content > Media ... select the three dots of an image and press "Edit". Open the dropdown at Aspect-Ratio and notice the presence of a pre-defined set of aspect-ratios
Apply the PR
npm run build:jsto compile newly added jsGo To System > Plugins > Media-Action = Crop and notice the availability of an aspect-ratio-calculator and a subform to add / remove / edit aspect-ratio options. Add, remove and edit aspect ratios.
Save the changes
Go To Content > Media ... select the three dots of an image and press "Edit". Open the dropdown at Aspect-Ratio and notice the changed set of aspect ratios
Actual result BEFORE applying this Pull Request
Expected result AFTER applying this Pull Request
Link to documentations
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed