User Tools

Site Tools


python:imagesprocess

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
python:imagesprocess [2014/08/15 07:22] – [export psd file to png] adminpython:imagesprocess [2016/08/08 23:56] – [Pillow] admin
Line 1: Line 1:
 ====== Image Processing ====== ====== Image Processing ======
 +===== Pillow =====
 +refer: http://effbot.org/imagingbook/
 +==== Image Module ====
 +==== ImageDraw Module ====
 ===== Psd tools ===== ===== Psd tools =====
 source: https://github.com/kmike/psd-tools source: https://github.com/kmike/psd-tools
 +refer API: http://searchcode.babies.vn:8080/source/xref/python2.7/site-packages/psd_tools/user_api/psd_image.py
 ==== Install ==== ==== Install ====
   * windows:<code bat>   * windows:<code bat>
 SET VS90COMNTOOLS=%VS100COMNTOOLS% SET VS90COMNTOOLS=%VS100COMNTOOLS%
-easy_install.ext psd-tools+easy_install.exe psd-tools
 easy_install.exe packbits easy_install.exe packbits
 </code> </code>
Line 13: Line 18:
 </code> </code>
 ==== Using Psd tools ==== ==== Using Psd tools ====
-=== Read header and layers(contain layers and groups) ===+=== Read psd file and get header, layers(contain layers and groups) ===
   * PSDImage.load return **psd_tools.user_api.psd_image.PSDImage** object   * PSDImage.load return **psd_tools.user_api.psd_image.PSDImage** object
   * **psd_tools.user_api.psd_image.PSDImage** contain list of objects **psd_tools.Group** and **psd_tools.Layer**   * **psd_tools.user_api.psd_image.PSDImage** contain list of objects **psd_tools.Group** and **psd_tools.Layer**
python/imagesprocess.txt · Last modified: 2022/10/29 16:15 by 127.0.0.1