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

Uploading an image shows then breaks with error #26

Closed
rocxa opened this issue Jun 7, 2016 · 6 comments
Closed

Uploading an image shows then breaks with error #26

rocxa opened this issue Jun 7, 2016 · 6 comments

Comments

@rocxa
Copy link
Contributor

rocxa commented Jun 7, 2016

Images show briefly and then error:
no decode delegate for this image format `/tmp/magick-ab1Slan2' @ error/constitute.c/ReadImage/566

Answer, imagemagick install is probably duff..
http://stackoverflow.com/questions/30005612/imagemagick-no-decode-delegate-for-this-image-format

Although for me imagemajick shows all the necessary delegates and phpinfo shows all the supported formats and I still get the error :-(

Great (much needed) extension to CiviMail btw :-)

@deepak-srivastava
Copy link
Collaborator

@rocxa Not sure we can help, but we can try setup one wamp install and see how it goes.

@rocxa
Copy link
Contributor Author

rocxa commented Jul 19, 2016

I have confirmed that imagemagick is working fine via php (creating thumbnails etc) on my server but seems to break when used via Mosaico. It is probably going to be something silly like Mosaico looking in the wrong place/or using the wrong folders for images.

@deepak-srivastava
Copy link
Collaborator

Does runcheck=1 detects anything (make sure to use latest release)?

If you can identify what path/url appears wrong to you, i can probably suggest where to correct. Its mostly config vars.

@rocxa
Copy link
Contributor Author

rocxa commented Jul 19, 2016

I have discovered the problem is caused by empty index.html files that are added to all directories on our server to (i think) stop directory listings?!

the Utils.php file in the Mosaico extension doesn't look specifically for image files so get caught out by these html files (and probably any other type of file) in the image directories and tries to convert them to images.

@rocxa rocxa mentioned this issue Aug 5, 2016
@deepak-srivastava
Copy link
Collaborator

@rocxa thanks for your PR.

re: index.html - may be its worth adding checks for such files when runcheck=1 in the url? I remember being hit by it.

@deepak-srivastava
Copy link
Collaborator

Closing this ticket now. Please re-open if any issues. Thanks.

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

No branches or pull requests

2 participants