一般如何弄图片 保证图片不失真

WBOY
Release: 2016-06-13 12:54:54
Original
1102 people have browsed it

一般怎么弄图片 保证图片不失真
打水印  缩略图
如果是png图片  图片会失真

一般怎么解决



如果是bmp 图片
没有  imagecreatefrombmp  相关的函数  怎么处理bmp这类的图片了???

求指教...................


------解决方案--------------------
真彩方式图片可使失真最小
一点不失真是不可能的,除非是原大

bmp 不是网页图片,所以 php gd 不支持
但网上能找到 php 的 bmp 处理代码
------解决方案--------------------
imagecreatetruecolor()
imagealphablending()
$color = imagecolorallocatealpha()
imageCopy()
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template