需要在python中为照片添加纸张样效果? [英] What is needed to add an paperprint-like effect to photos in python?

查看:80
本文介绍了需要在python中为照片添加纸张样效果?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在python中转换照片,如下所示:

I want to transform photos in python to look like this:

一张纸打印的图片http://media.doctype.com/4b4bb461-1f1f-4c0e-9fc4-b4626e672b27.png
doctype.com

我将在django中使用它, PIL已安装。

I will use it in django, PIL is installed.

如何实现?

推荐答案

对于更复杂的变换,我对ImageMagick有更好的运气。你必须单独安装它,虽然有一个python库它没有很好地记录,所以我刚刚使用命令行调用。

I've had a bit better luck with ImageMagick when it comes to more complex transformations. You would have to install it separately and though there is a python library it doesn't appear well documented so I've just used command line calls.

这是一个很好的翘曲图像教程
关于一般用途的另一个教程

阴影可能只是第二个图像与第一张图片合成。

The drop shadow is probably just a second image which is composited with the first image.

这篇关于需要在python中为照片添加纸张样效果?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆