User tests: Successful: Unsuccessful:
The main objective of this extension is to preserve the important message associated with the image, by providing the user a way to add the focus area for the image. Images are being made responsive with the help of this extension.
Note : This features can not be tested now because of this issue.
But after this got resolved one can test this feature by following these simple steps
All Good, feature is ready to be tested.
After pulling this PR to the local repository, Fresh install Joomla (Just delete configuration.php
) or you can discover and enable the following plugin in the system through plugin extension manager:
After the setup go to Media-Manager --> Edit any Image --> Go to focus tab.
Here you need to select a focus area for the image .
After selecting focus area Just hit Save and Close.
Finally, add that image to the article.
Then, Go to that article in the front-end and try changing the window size for the article.
The cropped and smaller images around the focus area would be shown for smaller view ports.
More Information about the features and instruction to use them for this plugin is given in documentation here
Status | New | ⇒ | Pending |
Category | ⇒ | Repository Administration com_media Language & Strings SQL Installation Postgresql Libraries JavaScript Front End Plugins |
@kasvith kind of hard to test because as @proman24 days it cant be tested because of joomla-projects/media-manager-improvement#577
Title |
|
Title |
|
Error on installing PR: The file marked for modification does not exist: package-lock.json
Labels |
Added:
?
?
|
@franz-wohlkoenig just pushed a commit, that might solve the issue
@franz-wohlkoenig This PR is bot passible to test on nightly builds because package-lock.json
is excluded from builds
Thank you @Anu1601CS for reviewing, I'll do the changes ASAP.
@dgrammatiko Changes in administrator/components/com_media/package-lock.json
is correct ?
@proman24 Why changes occurs ? in administrator/components/com_media/package-lock.json
@Anu1601CS No idea why administrator/components/com_media/package-lock.json
is changing, I have not used any NPM packages in the plugin.
@Anu1601CS No idea why administrator/components/com_media/package-lock.json is changing, I have not used any NPM packages in the plugin.
Then better to revert the changes you have not done!
I have tested this item
- Loading time is quite long
Tested on alpha5.
Don't work for me neither. As long as I'm on the "focus" tab, "save" or "save and close" do not work.
@ka3media please mark your Test as unsuccessfully:
I have tested this item
Tested on alpha5.
Don't work for me neither. As long as I'm on the "focus" tab, "save" or "save and close" do not work.
It would be really a great and professional feature!
Thanks for testing @coolcat-creations @ka3media. :-)
Feature is not functional now on this branch because of this issue.
But, you can check out the working feature at this repo master branch.
Would be correcting the issues with this PR once the template issue is resolved, cause as of now I am able to test the integrations.
impressive feature !!!! hope will be added !
Category | Repository Administration com_media Language & Strings SQL Installation Postgresql Libraries JavaScript Front End Plugins | ⇒ | Administration com_media Front End Installation JavaScript Libraries Plugins Postgresql Repository SQL |
Hi guys... this is probably one of most important features for let J4 be adopted by more "admin users", copywriters, website managers, etc.
Would be correcting the issues with this PR once the template issue is resolved, cause as of now I am able to test the integrations.
I hope @proman24 can check if the problem was solved ...
@proman24 I cannot replicate joomla-projects/media-manager-improvement#577 which may mean it has been resolved somewhere.
@proman24 using patch tester I have added this patch and it does not show me the additional tab that you mention. As you have mentioned there is no requirement for NPM I will need further instructions. Thanks so much for this really nice addition to Joomla. Tag me and I will test it again when I have further information.
I have tested this item
Applying the patch did not bring this tab up. So test failed.
Labels |
Added:
Conflicting Files
|
Category | Repository Administration com_media SQL Installation Postgresql Libraries JavaScript Front End Plugins | ⇒ | Repository Administration com_media Language & Strings Libraries JavaScript Front End Plugins |
GOTO Administrator->System->Install->Discover
Install
Ignore that I published the plugins now too
If I may make a suggestion. It is only possible to have the focus in a rectangle. Possibly because of the original shape of my image. One of the great features of the <picture>
element is that you can change the art direction. Which may mean that on mobile for example I do not want a landscape rectangle but instead a portrait image. Does that make sense?
I have tested this item
It works but I have suggested an improvement. I have tested on the front end and the back end.
I don't know if this should be part of this pull request or not, I suspect not. But another great benefit of the <picture>
element is that you can modern images, such as WebP with a fallback such as JPEG. I have no idea how you would achieve that with the media manager but in the long run I think that's the direction we should be taking. You can see an example we made here: https://dev.joomlalondon.co.uk/ (site isn't finished yet).
Labels |
Added:
?
|
@uglyeoin plugin was working as expected, as tested on 8c2afdb. @Quy @brianteeman can you please review the code so that It can be merged.
@uglyeoin In SmartCrop.php
in compute function, I am taking the required width as the parameter, and cropping the image according to their original aspect ratio, another parameter -- like aspect ratio can be passed in this function to satisfy this requirement. Also, some minor changes in the content plugin can be done to judge whether to show landscape / mobile cropped images.
on a 1st look you need to add the relative installation & update sql files for these plugins
on a 1st look you need to add the relative installation & update sql files for these plugins
There are few of my comments that are not addressed:
media/com_media/js/edit-images.js
.es6.js
But on a quick glance this is totally useless:
In sort this is not FIT or either not production READY.
There you have it, someone said it...
@dgrammatiko thank you for your feedback. I accept you as an authoritative voice, but perhaps the voice could have been slightly gentler. Let's try to offer solutions as well as problems and be mindful that someone has put a lot of work and time into this.
I don't think the UX is perfect either, but I don't have a suggestion on how to improve it which is why I have not mentioned this. Do we have a UX team?
I personally believe we should be using <picture>
not srcsets
as <picture>
can incorporate srcsets
as well as cropping and also offering other image formats such as webp
with jpeg
as a fallback.
I don't think we can use the current system - one image to serve all viewports - so we do need a solution if we are to be a modern CMS.
I personally believe we should be using not srcsets as can incorporate srcsets as well as cropping and also offering other image formats such as webp with jpeg as a fallback.
That's implementation detail, yes picture elements are better nowadays
I don't think we can use the current system - one image to serve all viewports - so we do need a solution if we are to be a modern CMS.
Yes the CMS needs a way to have thumbnails or sets of images per given breakpoints (srcsets). What the CMS doesn't have to provide as it's a way to niche solution (very few will actually either use it) is a cropped thumbs per breakpoint (eg this is providing only one cropped version, someone could argue why not have an individually cropped image per breakpoint?). See my point?
I don't think the UX is perfect either, but I don't have a suggestion on how to improve it which is why I have not mentioned this.
Well it's easy: instead of waiting the user to come back for this functionality provide it whenever there is an upload. Simple as that...
but perhaps the voice could have been slightly gentler.
Sorry not sorry for expressing honest opinion here. Truth hurts sometimes...
Sorry not sorry for expressing honest opinion here. Truth hurts sometimes...
I didn't say don't express an opinion, they are vital for driving the project forwards. I just implied it could be expressed in a more considerate way. Your original post reads as this is dead wood and should not be worked on.
Simply by suggesting in more detail what the issues are and how they may be overcome is a lot more objective.
By saying "if this was offered on file upload it would be a better implementation" it would be taken less badly than "sorry this is totally useless". Someone spent time on this, we should be grateful, even if we don't use it. If there are better solutions, suggest them as options, an objective way.
Your original post reads as this is dead wood and should not be worked on.
Not "as if this is dead", I say it very clearly!!!
Let me explain:
It's pretty straight forward: this is not for Prime time...
It would be better to say things objectively is my only point. If code doesn't fit the requirements the project should not be obliged to accept it. By explaining what would make it acceptable the original author or someone else may decide to take the job on. Without that clarity, strong statements such as "this is totally useless" demoralise people who have taken time to contribute.
It is still currently better than nothing, albeit I'm not a fan of accepting things for that reason. So many would say it is not totally useless, or even useless.
Your "do it on upload" solution brings with it the problem of needing to change media queries or edit crops when a template changes (or for any other reason), so we still need another way to edit things if we take that route forward.
UX should not be the opinion of one person, it should be a data driven, testable process.
In any case, people have written code & documentation, we can still be grateful to the original author for his work (thank you @proman24 ). To avoid wasting people's time, we should get an overriding decision on how to move forwards. I don't know who is in charge of that. It would also be good to define tasks better up front rather than afterwards if that is at all possible.
It is still currently better than nothing, albeit I'm not a fan of accepting things for that reason. So many would say it is not totally useless, or even useless.
And this is how Joomla end it up where it is now, by accepting code that should have been rejected
FWIW I've helped the author of this PR to complete his GSOC task but I wasn't his mentor neither I was involved in the architectural, design or UX decisions. In sort there are things that could be salvaged and then there are things that would take far less time to be done from clean sheet. This in my humble opinion is falling to the second category, it's far easier to write a proper thingy than try to make this work properly...
My 2c and I'm off this thread...
The ux is not 2020 (upload the file, then go select the file apply the crop... WTF???), actually the ux is not even considered...
Without giving a way to users to select the focus area how are we taking in the focus? I don't think of any other way. Also, this is not mandatory for all the images only those which author required, just like other tabs in the modal, crop/rotate.
Although it is built upon my code: https://github.com/ttc-freebies/plugin-responsive-images
Totaly no clue about this thing. And I strongly disagree with this false accusation of plagiarism, anyways.
The JSON file as storage is a no-no from anyone that did anything that was supposed to sustain a load (some 10000 of files in this case)
At the time of development, the media-manager was not using any database, so upon discussion, we decided to go with a JSON store. So that after this thing is functional, DB class can be written in the near future.
Well it's easy: instead of waiting the user to come back for this functionality provide it whenever there is an upload. Simple as that...
The main idea was to provide the user with a way to set the focus of the image, and process image according to the focus area
Yes the CMS needs a way to have thumbnails or sets of images per given breakpoints (srcsets). What the CMS doesn't have to provide as it's a way to niche solution (very few will actually either use it) is a cropped thumbs per breakpoint (eg this is providing only one cropped version, someone could argue why not have an individually cropped image per breakpoint?). See my point?
I not getting what are you trying to say here, In this plugin, we are cropping the image for individual breakpoints around the focus defined by the user.
Everything was very well discussed and iteratively developed, under the mentorship of @nibra @kasvith, So, giving conclusive statement like the whole design of the plugin is wrong, would not be fair-- it's far easier to write a proper thingy than try to make this work properly
, a quick glance this is totally useless
,this is not FIT or either not production READY
. I believe that there might be some holes in the plugin which could be filled up but claiming it to be wholly wrong doesn't seem to be worthy for the time and efforts put in by me and the mentors.
@dgrammatiko after your comment on the first evaluation blog, I messaged you directly for knowing where is this thing going wrong. But that was a very short and discontinued discussion.
There were some delays in testing and getting the PR merged in 2018 because of some other underlying issue which I stated in the description of the PR. But I am more than interested in getting this PR merged in Joomla not only because I have spent more than 4 months in the development of this plugin, but also I believe that this is a really good add-on to Joomla's core.
It would be great if someone can help me in figuring out what exactly are the changes needs to be done (rather than saying architecturally wrong) and what can be done in this plugin for making it production-ready.
Also, before continuing with the development we should get the vote weather to continue developing this plugin the way it is defined in this PR. Or there is some better way to achieve the objective. If yes, then it would be a good idea to close this PR.
@laoneo @brianteeman @ciar4n @Quy @nibra @kasvith @dneukirchen
Yes I definitely would like to see a version of this make it in - clearly needs some work though. So as a starting point would be good to merge in latest 4.0-dev and move the media folders into the build/media_source directory. I'm just spinning this up locally now to do some testing and figure out the next steps beyond that.
As @proman24 mentioned the plugin uses JSON store because NMM did not use any database at that time. But the plugin itself does not care what is the storage system for these data. It can be MySQL, Firebase, Postgres whatever we want if we have a need in future. Also IMHO since there arent any frequent updates JSON still fits pretty fine there(we can introduce a new storage system if we getting issues after releasing to beta).
As @nibra and I can clearly say, @proman24 has put a great effort into this project. Let's not waste his effort.
I would suggest resolving this matter and move forward, and not to close PR.
please don't enable this by default. As a photographer and sometime site dev I dang sure don't want some piece of software changing images I spent time to create.
I am moving this to 4.1, we are in beta and this is a new feature with need some more work.
Title |
|
Labels |
Added:
?
Language Change
Ready to take over
?
?
Removed: ? ? ? |
This pull request has automatically rebased to 4.2-dev.
Labels |
Added:
?
Removed: ? |
This pull requests has been automatically converted to the PSR-12 coding standard.
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-07-13 07:42:46 |
Closed_By | ⇒ | alikon | |
Labels |
Added:
?
|
@laoneo @dneukirchen @dgrammatiko @ciar4n it would be great if you guys do some review