Lack of Heroku PHP GD setup for JPEG files causing issues

我是研究僧i 提交于 2019-12-12 03:59:07

问题


Heroku does not support GD setup for jpg. Because of this I am not able to create collage out of profile pics, which are only in jpg format. I am having the same issue as the below link.

http://groups.google.com/group/heroku/browse_thread/thread/5f0b169272dd075f/5926d2e6eace859c?utoken=sizyOCkAAAD0zGxoh6dI3732ocaO_CKc0UdN2a4MLXn0dn7f9oF9dw34Femrnx-0ZHcOkI9yXY0

How do I resolve this issue?


回答1:


My alternative was to use imagick.so extension instead. See my reply @stackoverflow here for instruction how to get this extension up and running quickly. Let me know if this works (the few basic functions I tried are ok).

The official buildpack from Heroku doesn't list PHP. Strange.




回答2:


Heroku does support ImageMagick. I ran in to the GD/JPG problem hosting a WordPress site, but it was easily fixed by installing the imagemagick-engine plugin. Using it from the command line works with the path /usr/bin . The PHP module is not installed.



来源:https://stackoverflow.com/questions/8627701/lack-of-heroku-php-gd-setup-for-jpeg-files-causing-issues

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!