- πΊπΈUnited States smustgrave
If still an issue on 2.0.x branch please reopen!
I was debugging an issue with focal_point module where the focal point was not being set within preview screen.
This was due to no file being found by Drupal's ImageToolkit class `GdImageToolkit`
Install focal_point module and edit a media item (where you do not have a local file), set the preview and note how the focal point saves to 0,0 rather than where you selected it to save. It defaults to 0,0 because it does not find a width or a height on the image (because there was no image to get this data from).
I note there is work to create a stream wrapper override this attempts to find a solution via another avenue with extending the GDImageToolkit class which overrides the GDImageToolkit::parseFile (the method that gets the preload data of a file which is used for getting width, height and other), in that if a file is not found it triggers a new Event a 'Fetch Event' which in turn fetches the file from the remote server, then it rechecks to see if the file now exists.
The new image toolkit needs to be configured at: /admin/config/media/image-toolkit
1. Added extended image toolkit
2. Added new fetch event to allow fetching of files outside of the onRequest event handling, this is utilised in the above image toolkit and reshuffled the existing ProxySubscriber to handle this new event.
Closed: outdated
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
If still an issue on 2.0.x branch please reopen!