Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/349.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
有没有';imagecreatefromjpeg';python中的函数与PHP中的函数类似吗?_Php_Python_Django - Fatal编程技术网

有没有';imagecreatefromjpeg';python中的函数与PHP中的函数类似吗?

有没有';imagecreatefromjpeg';python中的函数与PHP中的函数类似吗?,php,python,django,Php,Python,Django,我正试图在我的web应用程序中添加一个可以重新定位的封面配置文件。。 我在这本书中找到了一本有用的教程 问题是服务器端代码在PHP中,我正在使用PYTHON和Django 我找不到PHP中使用的一些函数,比如imagecreatefromjpeg,imageSY,imagedestroy…等等 有什么帮助吗 imagecreatefromjpeg是GD库的一部分,因此如果您想要与PHP中的界面大致相同的界面,那么最好的办法就是找到Python的GD绑定 以下是一个链接: 以及从其单据中获取的相应

我正试图在我的web应用程序中添加一个可以重新定位的封面配置文件。。 我在这本书中找到了一本有用的教程

问题是服务器端代码在
PHP
中,我正在使用
PYTHON
Django

我找不到
PHP
中使用的一些函数,比如
imagecreatefromjpeg
imageSY
imagedestroy
…等等


有什么帮助吗

imagecreatefromjpeg
是GD库的一部分,因此如果您想要与PHP中的界面大致相同的界面,那么最好的办法就是找到Python的GD绑定

以下是一个链接:

以及从其单据中获取的相应功能:

image(image[,(w,h)] | file | file,type | (w,h))
  create GD image from 
    - file.(png|jpeg|gd|gd2|xbm|xpm),
    ...

imagecreatefromjpeg
是GD库的一部分,因此如果您想要与PHP中的界面大致相同的界面,那么最好的办法就是找到Python的GD绑定

以下是一个链接:

以及从其单据中获取的相应功能:

image(image[,(w,h)] | file | file,type | (w,h))
  create GD image from 
    - file.(png|jpeg|gd|gd2|xbm|xpm),
    ...

感谢@Lepidosteus提供的宝贵指导


我在谷歌搜索了一下,在
堆栈溢出
中找到了这个有用的链接感谢@Lepidosteus提供了宝贵的指导

我在谷歌搜索了一下,在
堆栈溢出
中找到了这个有用的链接