menu

有舍才有得

I am back

Avatar

请教精通photoshop或图像处理的达人

最近快被multimedia的作业逼疯了

请教各位达人几个问题:
1. 经研究,photoshop画出来的图,如果copy+paste的话,paste的图片会被放进一个新的图层,这样ctrl+E合并图层,然后存成jpg,是不是合并的图层越多生成的文件越大(当然前提是最终产生的图片看起来都是一样的)。

这个问题缘起于,我要画一些美式棋盘(即全是黑白相间的方块),方块越小,理论上生成的文件应该越大,因为图中颜色变化的频率越高,压缩的比例就越小。但是事实上我得到一些不遵从理论的结果,所以想知道是不是我画的过程会影响文件的大小。

2. photoshop新建图片时有三个选项“白色”,“背景色”,“透明”,这三种选项中选择“背影色”然后不做任何背景是否透明的处理,这样子的图片是不是就不含有alpha通道。如果这一设置与alpha通道无关那么什么样的方法能生成不含alpha通道的图片。

我已经google过很多关于alpha channel的资料,但是无法对其有一个准确认识,对于一个灰度图,每一个像素储存一个8-bit的灰度值,那么它的alpha channel储存的是什么值呢?每一个像素储存了一个0-1之间的值表示它的透明度?每一个像素储存一个0-255之间的值表示它的透明度?

求高人解惑,在此先谢过~~~

我一直以为我的ps挺好的。。。。。。。。


现在知道完了。。。
太专业了。。。不好意思。帮不了你。。学姐

alpha通道我用的不多,不是很清楚

不过图层应该只影响psd文件的大小,合并之后的大小只取决于合并效果和压缩率

呵呵~~~~其实我问的这些已经与美图无关了,都太理论了~~这不表示你的ps不好

我刚才google到一个东西
http://www.adobepress.com/articles/article.asp?p=433754&seqNum=7&rl=1

When you start adding layers, layer masks, and alpha channels, it becomes quite difficult to figure file size with any degree of reliability. Each channel or mask adds another 8 or 16 bits to the bit depth (depending on whether the document was in 8-bit/channel or 16-bit/channel mode), but layers are much harder to figure because Photoshop divides each layer into tiles. Empty tiles take up almost no space, but if a tile contains just one pixel, it takes up the same amount of space as a tile that's full of pixels. It's possible, and sometimes useful, to place layered TIFF or Photoshop files in a page-layout application, but we recommend flattening all files before final handoff to keep final files to a manageable size.

gai 去 Wikipedia 看过没?

我看了看关于 alpha blending 的条目,觉得好像也不能解答问题。

嗯~~~
我去wiki看过了,还是不知道怎么做。我把其中一个题目贴给你们看看啊
b. A 8-bit greyscale image with alpha channel is semitransparent at the top, and opaque at the bottom.
Describe what data are contained in the alpha channel, giving the values of the content if possible.

c. Suppose the content of the image channel of the image in part b is copied to the alpha channel of
a new image of the same size. Is it possible to make the image look the same as that in part b? If
not, why not? If so, what should the content of the image channel be, and why?

这个b还好答,c我感觉就不好答了,在我又看了很多关于alpha channel的资料以后,我觉得c问必须在背景色是0的情况下才可能看起来一样。

还有JPEG,我本来只是想测试两个图层和一个图层,压成JPEG以后大小是不是一样,结果发现我把同一个图保存两次居然得到了不同的文件大小,相差8个字节,是头文件的问题,还是JPEG的算法不是determinative.

真是头大了~~~

太专业了。。。。。

1. JPG是图层合并的,如果保存为JPG,就不在能包含多个图层信息了。存成PSD会越来越大,存成JPG,大小始终差不多。

美式棋盘的东西,用GIF更好,分颜色分块的。

2. 不清楚。只用过透明而已。

gai上的课好有趣啊。

纯粹的gray scale图是没有alpha的吧?
如果只是看上去是灰度的话无非是r=g=b,a值另存

gai

我想我和你是同學呢
我也瘋了

呵呵~~~~知道可以用GIMP画checkerboard以后就好多了。

不管怎么样我已经把作业交了:)

helloworld同学去看看 newsgroup吧

看到分数,惊为天人!满分!最牛的一句:"Since I don't know how to draw it with graphic processing tools……"

呵呵~~~~我也非常意外,这个作业得了满分,所以那天你们跟我说的时候我都是相当惊讶。

评论已关闭