简体   繁体   English

具有图像魔术效果的灯光效果

[英]Light effect with image magick

I'm using ImageMagick to resize an image to a smaller size gif. 我正在使用ImageMagick将图像调整为较小的gif。 In this process I'm trying to give the image a light effect, not a side-light, just like a shiny look all over. 在此过程中,我试图给图像提供灯光效果,而不是侧光,就像到处都是闪亮的外观。 Not a good comparison but for a better understanding think of an image seen in a old screen or an image seen in glossy monitor - I'm trying to enhance the image the closest to this point. 这不是一个很好的比较,但是为了更好地理解,请考虑在旧屏幕上看到的图像或在光泽显示器中看到的图像-我正在尝试增强图像到最接近这一点。 An important point is that I can't make a image-to-image treatment, it must be something that I can use in all the images. 重要的一点是我无法进行图像到图像的处理,它必须是可以在所有图像中使用的东西。 I know ImageMagick is a powerful tool, and can certainly do something for my images! 我知道ImageMagick是一个功能强大的工具,当然可以为我的图像做些事情! Many thanks! 非常感谢!

Closest example: http://images.sixrevisions.com/2009/05/01-02_high_pass_filter.jpg 最近的示例: http : //images.sixrevisions.com/2009/05/01-02_high_pass_filter.jpg

I'm still a bit confused by what you're trying to accomplish, but maybe these will get you going in the right direction. 我仍然对您要完成的工作感到困惑,但是也许这些会使您朝正确的方向前进。

Based upon the high pass filter example, you may want to check out this page , especially about two-thirds of the way down under "High Pass Filtering Of A True Color Image", and the "High Pass Darkened" example a bit further down under "Filtering With Bias". 根据高通滤镜示例,您可能需要检查一下此页面 ,尤其是在“对真实彩色图像进行高通滤镜”的情况下,大约三分之二,而“高通变暗”的示例再往下一点在“使用偏见进行过滤”下。

The color in the example also seems a bit more exaggerated, so you may want to look at Adjustments Using Histogram Modification . 示例中的颜色似乎也有些夸张,因此您可能需要查看使用直方图修改进行的调整

Before you had posted the example, I thought you were looking for some kind of reflection effect, like a glass button (which you can find examples for here , along with a bunch of other interesting effects). 在发布示例之前,我以为您正在寻找某种反射效果,例如玻璃按钮(您可以在此处找到示例,以及许多其他有趣的效果)。

If this doesn't meet your needs and you can be a bit more specific, please update your post...I'm sure somebody here can help you. 如果这不能满足您的需求,并且您可以更具体一些,请更新您的帖子...我确定这里有人可以为您提供帮助。

One way would be to use a mask. 一种方法是使用口罩。 See this post for an example. 有关示例,请参见本文 It uses Python and PIL but the same thing can be done using ImageMagick. 它使用Python和PIL,但使用ImageMagick可以完成相同的操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM