psd

PHP convert psd to jpg, selecting image layers

巧了我就是萌 提交于 2019-12-06 08:42:36
问题 I want to be able to select which layers from a .PSD image are merged into the final .JPG output image. I can merge all of the layers in the image with: $im = new Imagick('test.psd'); $im->flattenImages(); $im->setImageFormat('jpg'); $im->writeImage('test.jpg'); However the .psd contains about 10 layers and I want to be able to specify which specific layers should be merged together, to produce the final image. For example I want to merge only layer numbers 3, 5 and 10 or the layers with

A way to convert PSD format to something Gimp can read

若如初见. 提交于 2019-12-05 10:37:44
I have a bunch of PSD files (and more to come) and I want to get them into a format I can work with. I have had (some) success reading PSDs with Gimp before but these files won't read properly. Is there a way to convert PSDs to XCF? I have tried IrfanView which displays the PSDs alright but no conversion to Gimp's XCF. I read a (accepted) post on Yahoo Answers that says PNGs can support layers. Is this true? If so, how can I do this? PNG is a bad choice as it won't support much of the PSD features... XCF is also a bad idea since even the GIMP developers don't recommend it since it is built

php imagick 获取psd图层信息

别等时光非礼了梦想. 提交于 2019-12-04 15:20:28
php imagick 获取psd图层信息 <pre> <?php $projectname = 'test'; $im = new Imagick("test.psd"); $num_layers = $im->getNumberImages(); for ($i = 1, $num_layers = $im->getNumberImages(); $i < $num_layers; ++$i) { $im->setImageIndex($i); //this $im->setIteratorIndex($i); //or this is kinda redundant $pagedata = $im->getImagePage(); $pagedata['label'] = $im->getImageProperties("*")['label']; $allinfo[] =$pagedata; $im->writeImage($pagedata['label'] . '.png'); //导出所有图层到单独的png文件 } print_r($allinfo); exit(); </pre> 输出数组如下 width是图片宽度 height是图片高度 x和y都是图片相对于容器的位置 label是图层名字 一般用英文 不会乱码 <pre> Array ( [0] => Array

looking for java library to work with PSD format [closed]

夙愿已清 提交于 2019-12-04 04:47:19
I'm looking for a java library to work with PSD format(Photoshop). Any ideas? Probably very late, but as this page is pretty high ranked on google when searching "java psd library" I'll share my experience. -As Boris said the java-psd-library is read only. It has trouble reading recent CS4 format. If you ever find yourself with an error opening a psd file, opening it in Gimp 2.8 and saving it again will probably fix the issue. -As I needed to work on layered graphic files, I took time to search for an alternative. The PSD format is proprietary and access to specs seems restricted. I found that

“标准”让AI的脚步更快

时光毁灭记忆、已成空白 提交于 2019-12-04 02:27:02
今天在Segmentfault上看到了一篇介绍psd自动标注工具的文章,不禁有些感慨,技术发展的如此之快。我本身就是一个比较懒惰的人,对于页面开发很是抵触的,那么多标签、那么多属性真是懒得去记,所以在两年前就开始找有没有工具可以直接把psd转换成html的,可是很遗憾当时貌似只有photoshop的一个插件可以干这种事,而且还是收费的。前两月我开始接触了公司用的“蓝湖”,这就是一款可以自动标注的web应用,鼠标点到元素上,在右侧就会弹出相关的尺寸、颜色等信息,甚至还有css样式,这简直是太棒了,大大提高了开发效率。但我还不满足于此,有没有能直接将psd转换成html页面的工具呢?于是又在网上找了找,发现一个前端工程师开源的项目,和蓝湖的效果是一样的,我拿来运行下,发现是将psd转换成html了,思路他也写下来了,就是将psd转换成一种json格式,再将这种格式转换成html,看到他的这个解释我想到了“标准”这个词,不知道psd格式是谁发明的,但是它肯定有一套api,也就是标准,通过这套标准可以衍生和转换成另一套标准,继而能做好多事。之前看过psd可以直接转换成wordpress的主题,这其中也一定存在着一套标准,试想一下,如果我们给设计师定一个规范,必须按照这个规范来工作,那完全可以实现所有的psd都可以转换成html了,再想一下,如果将设计师用AI代替

Python PSD layers?

♀尐吖头ヾ 提交于 2019-12-03 11:06:11
问题 I need to write a Python program for loading a PSD photoshop image, which has multiple layers and spit out png files (one for each layer). Can you do that in Python? I've tried PIL, but there doesn't seem to be any method for accessing layers. Help. PS. Writing my own PSD loader and png writer has shown to be way too slow. 回答1: Use Gimp-Python? http://www.gimp.org/docs/python/index.html You don't need Photoshop that way, and it should work on any platform that runs Gimp and Python. It's a

Python PSD layers?

依然范特西╮ 提交于 2019-12-03 01:35:23
I need to write a Python program for loading a PSD photoshop image, which has multiple layers and spit out png files (one for each layer). Can you do that in Python? I've tried PIL, but there doesn't seem to be any method for accessing layers. Help. PS. Writing my own PSD loader and png writer has shown to be way too slow. Use Gimp-Python? http://www.gimp.org/docs/python/index.html You don't need Photoshop that way, and it should work on any platform that runs Gimp and Python. It's a large dependency, but a free one. For doing it in PIL: from PIL import Image, ImageSequence im = Image.open(

What is the best comment in source code you have ever encountered? [closed]

匿名 (未验证) 提交于 2019-12-03 01:06:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: What is the best comment in source code you have ever encountered? 回答1: I am particularly guilty of this, embedding non-constructive comments, code poetry and little jokes into most of my projects (although I usually have enough sense to remove anything directly offensive before releasing the code). Here's one I'm particulary fond of, placed far, far down a poorly-designed 'God Object': /** * For the brave souls who get this far: You are the chosen ones, * the valiant knights of programming who toil away, without rest, * fixing our most

ps切图 4 保存

匿名 (未验证) 提交于 2019-12-03 00:40:02
保存    存储所需要内容     如果是独立的图层 ,我们采用移动工具 把我们需要的内容拖到新文件中     如果是已经合并在一起的图层,我们可以采取:   第二种:  ( Alt + Shift + Ctrl + S ) 保存为哪种类型呢? 保存类型一      当图片色彩丰富且无透明要求时 保存类型二 当图片色彩不太丰富时 无论有无透明度要求 操作步骤 :选择好图片--- 请保存为PNG8格式 这里可以保存设置 以后就可以直接用 当图片有半透明要求 请保存PNG24格式 操作步骤 :选择好图片--- 为保证图片质量 保留一份PSD,在PSD上进行修改 为什么要这样做呢? 一是因为PSD文件是可以保留原图层的,对于我们后期维护是相当方便的 另外PNG8会对图片进行压缩的,如果我们在PNG8文件中修改再进行保存,那就等于压缩了两次 ,会导致像素点的丢失 原文:https://www.cnblogs.com/hzaixt/p/9275836.html

无需Adobe Photoshop依赖项!PSD管理控件Aspose.PSD重磅上线!

安稳与你 提交于 2019-12-02 18:49:15
Aspose.PSD 是高级PSD文件格式操作API,没有任何Adobe Photoshop依赖项。API允许创建或编辑Photoshop文件,并提供更新图层属性,添加水印,执行图形操作或将一种文件格式转换为另一种文件的功能。 Aspose.PSD for .NET 支持PSD和PSB文件格式进行加载和处理,并允许导出为各种光栅图像格式,例如TIFF,JPEG,PNG,GIF,BMP等。 总体特性 Aspose.PSD for .NET功能概述。 支持的文件格式 在您的应用程序中加载,创建或编辑Photoshop PSD和PSB文件。当前仅适用于.NET和Java平台。 平台独立性 用于.NET的Aspose.PSD支持任何从2.0开始的.NET框架。 先进的.NET PSD操纵API功能 将Photoshop文件转换为图像 从头开始创建Photoshop文件 加载现有的Photoshop文件 剪辑到矩形区域 绘制并填充基本形状 裁剪,旋转和调整图像大小 合并PSD图层 带有Alpha的PSD灰度支持 PSD的图层效果 图层创建日期和时间 图纸颜色突出显示 支持图层蒙版 在运行时支持文本层 调整层支持 在调整图层中管理亮度和对比度 管理曝光层 管理通道混音器调整图层 将PSD图层合并到其他图层 曲线调整层的渲染 管理员照片滤镜调整层 添加和渲染关卡图层 添加调整层的色相饱和度