如何在图像周围添加图像边界? [英] how to add image-border around an image?

查看:142
本文介绍了如何在图像周围添加图像边界?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



原因是我想在图像周围创建阴影效果。

有没有简单的方法在图像周围添加图像边框? >

图片以缩略图的形式加载,大小为110x75像素...我想创建一个阴影边框,但不知道如何在图像周围添加它,任何人都知道一种方式?

PHP比较可取...

解决方案

库或ImageMagick来改变PHP中的实际图像,但如果仅在网页上需要它,也可以在CSS中获得类似的效果。



有一个在这里用PHP和GD完成教程:


Is there any simple way to add a image border around an image?

Reason is I want to create a drop-shadow effect around the image.

The images are loaded as thumbnails and are 110x75 px... Im thinking about creating a shadow border, but dont know how to add this to around the image, anybody know a way?

PHP preferrably...

解决方案

You can use the GD library or ImageMagick to alter the actual image in PHP, but you can also achieve a similar effect in CSS, if it is only required on a web page.

There is a complete tutorial on doing it with PHP and GD here:

这篇关于如何在图像周围添加图像边界?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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