2017-11-08 10:28
浏览 61


I'm trying to add a cover profile into my web application that could be repositionned .. I found a useful tutorial in this link

The problem is that the server side code is in PHP and I'm working with PYTHON and Django .

I can't find some functions used in PHP like imagecreatefromjpeg , imageSY , imagedestroy ...etc..

Any help ?

图片转代码服务由CSDN问答提供 功能建议

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

2条回答 默认 最新

  • dsfdsf8888 2017-11-08 10:34

    imagecreatefromjpeg is part of the GD library, so if you want roughly the same interface than what you have in PHP your best bet is to find GD bindings for Python

    Here is a link to one:

    And its corresponding function from its doc:

    image(image[,(w,h)] | file | file,type | (w,h))
      create GD image from 
        - file.(png|jpeg|gd|gd2|xbm|xpm),
    点赞 打赏 评论
  • doucu5836 2017-11-08 11:26

    Thanks @Lepidosteus for the precious direction..

    I have googled around and I found this useful link Alternative for PHP GD library in python in Stack Overflow .

    点赞 打赏 评论

相关推荐 更多相似问题