Skip to content
This repository has been archived by the owner on May 9, 2023. It is now read-only.

Asset manager - if you edit a non-image file it breaks #1106

Closed
dannyuk1982 opened this issue Nov 15, 2016 · 0 comments
Closed

Asset manager - if you edit a non-image file it breaks #1106

dannyuk1982 opened this issue Nov 15, 2016 · 0 comments

Comments

@dannyuk1982
Copy link

Expected behaviour

Editing a non-image file (i.e. a PDF) either should not have an edit button, or should not break

Actual behaviour

A popup with "editing asset" appears with a loading graphic that never goes. The following is logged:

[2016-11-15 17:29:46] production.ERROR: Exception: Image [blah.pdf] does not actually appear to be an image. in /home/public_html/statamic/core/Imaging/ImageGenerator.php:178 Stack trace: #0 /home/public_html/statamic/core/Imaging/ImageGenerator.php(130): Statamic\Imaging\ImageGenerator->validateImage() #1 

Steps to reproduce

  1. Open Asset manager
  2. Click the edit pencil button on something like a PDF
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants