Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When uploading an svg file to the panel #5

Closed
flokuek opened this issue Dec 11, 2018 · 2 comments
Closed

When uploading an svg file to the panel #5

flokuek opened this issue Dec 11, 2018 · 2 comments

Comments

@flokuek
Copy link

flokuek commented Dec 11, 2018

When uploading a svg file to the panel it throws an error: imagecreatefromstring(): Data is not in a recognized format

same with a png file: file_get_contents(http://localhost/peak/media/site/-772678704-1544528814/capture-1x0-q90.png): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found

These issues come up since I've updated to the latest v3 nightly build 2018-12-10

blueprint setup:

sections:
  images:
    type: files
    layout: list
    template: image
    info: "{{ file.dimensions }}"

error
error

@sylvainjule
Copy link
Owner

The svg issue is fixed, the plugin will now only process resizable files. ✅

Your png issue should also be fixed, the extraction process now relies on the root() instead of url() of the thumb, and forces its creations so it always exists when the path is accessed. Don't hesitate to open a new issue with more details about the context if it happens again!

@flokuek
Copy link
Author

flokuek commented Dec 12, 2018

Awesome 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants