Replies: 1 comment
-
Thanks got info. yes, I think ewe have to implement it manually. each use case individual |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have recently been testing the package and purchased the media library pro version. However, I think it would be beneficial if the library had better support for APIs and frontend frameworks like Vue, React and Svelte etc.
I have noticed that there are some discussions and resources available in the repo on how people are solving the problem of working with APIs and frontend frameworks, but it’s mostly doing things to work around the package, maybe there’s way this could be streamlined?
The possibility to create something like:
Having the ability to pass the height and width for images is important for automatic aspect ratio calculation to avoid content shift.
https://chromestatus.com/feature/5737185317748736
I would appreciate your consideration of this request and I look forward to seeing the library improved with these features in the future. If anyone has solved this or have suggestions on how to implement this using the current available methods please let me know.
Thank you!
Some of the issues/discussions mentioning API/JSON endpoints:
#892
#1100
#1302
#1262
#2573
https://github.com/spatie/laravel-medialibrary/issues/1135
I’ve gathered some resources from the repo on how people are solving/hacking around this:
#892
https://gist.github.com/adiachenko/508d227ce3ce444aa1e649965a7f157a
Beta Was this translation helpful? Give feedback.
All reactions