]> BookStack Code Mirror - bookstack/commit
Images: Rolled out image memory handling to image actions
authorDan Brown <redacted>
Sun, 1 Oct 2023 12:05:18 +0000 (13:05 +0100)
committerDan Brown <redacted>
Sun, 1 Oct 2023 12:05:18 +0000 (13:05 +0100)
commitb2d48d9a7f52ae0d37567eec57469ea2d9c901d3
treeda58a1aacd411f21c3f9bf531a97d678d5504b08
parent20bcbd76efdffa7537c7373197db4491ea846ab0
Images: Rolled out image memory handling to image actions

- Moved thumnbail loading out of repo into ImageResizer.
- Updated gallery and editor image handling to show errors where
  possible to indicate memory issues for resizing/thumbs.
- Updated gallery to load image data in a per-image basis via edit form
  for more resiliant thumb/data fetching. Data was previously provided
  via gallery listing, which could be affected by failing generation
  of other images.
- Updated image manager double click handling to be more pleasant and
  not flash away the edit form.
- Updated editor handlers to use main URL when thumbs fail to load.
15 files changed:
app/Uploads/Controllers/DrawioImageController.php
app/Uploads/Controllers/GalleryImageController.php
app/Uploads/Controllers/ImageController.php
app/Uploads/Controllers/ImageGalleryApiController.php
app/Uploads/Image.php
app/Uploads/ImageRepo.php
app/Uploads/ImageResizer.php
lang/en/errors.php
resources/js/components/image-manager.js
resources/js/markdown/actions.js
resources/js/wysiwyg/drop-paste-handling.js
resources/js/wysiwyg/plugins-imagemanager.js
resources/sass/_components.scss
resources/views/pages/parts/image-manager-form.blade.php
resources/views/pages/parts/image-manager-list.blade.php