图片可以修改那些属性,而我知道道的有md5码,格图片式,图片切割,图片缩放,图片加水印,请问各位大神还

淘宝图片空间添加了水印后如何删除水印_百度知道
淘宝图片空间添加了水印后如何删除水印
在淘宝图片空间添加了水印后,觉得不好看,要改的话,如何删除原来的水印?
提问者采纳
这就要你好好研究一下淘宝空间这方面的使用方法了我知道的方法可能比较麻烦哦就是你把图片重新弄到你的电脑里再改一下水印,然后上传我没有用淘宝空间,我用的是大淘营相册,原图上传,你在自己电脑加好水印,调好图片大小直接上传就可以了如果你觉得淘宝空间加水印调大小弄起来太麻烦,你可以用一款:淘宝图片助理处理可以批量处理图片,又方便又简单,这还是大淘营相册他们客服教我的呢.
提问者评价
可能最热门的是ISEE,对画质影响是最小的或者说是无损的。水印你真别说没用,防盗图的效果那是特别好
其他类似问题
1人觉得有用
为您推荐:
其他1条回答
水印添加上去后,删除后是不会和原图(没加水印前图片)的效果一模一样的就是用photoshop修改图片,用图片上的其他像素去覆盖原有的水印,如果把图片放到最大的话,是能看出区别的如果把图片缩小一般看不出和原图区别
您可能关注的推广
淘宝图片空间的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁一个php图片类,将图片保存为不同尺寸的图片
0人收藏此代码,
php 将图片保存为不同规格的图片
图片处理类.imagecls.php
图片处理类
class imagecls
* 文件信息
var $file = array();
* 保存目录
var $dir = '';
* 错误代码
var $error_code = 0;
* 文件上传最大KB
var $max_size = -1;
function es_imagecls()
private function checkSize($size)
return !($size & $this-&max_size) || (-1 == $this-&max_size);
* 处理上传文件
* @param array $file 上传的文件
* @param string $dir 保存的目录
* @return bool
function init($file, $dir = 'temp')
if(!is_array($file) || empty($file) || !$this-&isUploadFile($file['tmp_name']) || trim($file['name']) == '' || $file['size'] == 0)
$this-&file = array();
$this-&error_code = -1;
$file['size'] = intval($file['size']);
$file['name'] =
trim($file['name']);
$file['thumb'] = '';
$file['ext'] = $this-&fileExt($file['name']);
$file['name'] =
htmlspecialchars($file['name'], ENT_QUOTES);
$file['is_image'] = $this-&isImageExt($file['ext']);
$file['file_dir'] = $this-&getTargetDir($dir);
$file['prefix'] = md5(microtime(true)).rand(10,99);
$file['target'] = &./public/&.$file['file_dir'].'/'.$file['prefix'].'.jpg';
$file['local_target'] = APP_ROOT_PATH.&public/&.$file['file_dir'].'/'.$file['prefix'].'.jpg';
$this-&file = &$
$this-&error_code = 0;
* 保存文件
* @return bool
function save()
if(empty($this-&file) || empty($this-&file['tmp_name']))
$this-&error_code = -101;
elseif(!$this-&checkSize($this-&file['size']))
$this-&error_code = -105;
elseif(!$this-&file['is_image'])
$this-&error_code = -102;
elseif(!$this-&saveFile($this-&file['tmp_name'], $this-&file['local_target']))
$this-&error_code = -103;
elseif($this-&file['is_image'] && (!$this-&file['image_info'] = $this-&getImageInfo($this-&file['local_target'], true)))
$this-&error_code = -104;
@unlink($this-&file['local_target']);
$this-&error_code = 0;
* 获取错误代码
* @return number
function error()
return $this-&error_
* 获取文件扩展名
* @return string
function fileExt($file_name)
return addslashes(strtolower(substr(strrchr($file_name, '.'), 1, 10)));
* 根据扩展名判断文件是否为图像
* @param string $ext 扩展名
* @return bool
function isImageExt($ext)
static $img_ext
= array('jpg', 'jpeg', 'png', 'bmp','gif','giff');
return in_array($ext, $img_ext) ? 1 : 0;
* 获取图像信息
* @param string $target 文件路径
* @return mixed
function getImageInfo($target)
$ext = es_imagecls::fileExt($target);
$is_image = es_imagecls::isImageExt($ext);
if(!$is_image)
elseif(!is_readable($target))
elseif($image_info = @getimagesize($target))
list($width, $height, $type) = !empty($image_info) ? $image_info : array('', '', '');
$size = $width * $
if($is_image && !in_array($type, array(1,2,3,6,13)))
$image_info['type'] = strtolower(substr(image_type_to_extension($image_info[2]),1));
return $image_
* 获取是否充许上传文件
* @param string $source 文件路径
* @return bool
function isUploadFile($source)
return $source && ($source != 'none') && (is_uploaded_file($source) || is_uploaded_file(str_replace('\\\\', '\\', $source)));
* 获取保存的路径
* @param string $dir 指定的保存目录
* @return string
function getTargetDir($dir)
if (!is_dir(APP_ROOT_PATH.&public/&.$dir)) {
@mkdir(APP_ROOT_PATH.&public/&.$dir);
@chmod(APP_ROOT_PATH.&public/&.$dir, 0777);
* 保存文件
* @param string $source 源文件路径
* @param string $target 目录文件路径
* @return bool
private function saveFile($source, $target)
if(!es_imagecls::isUploadFile($source))
$succeed =
elseif(@copy($source, $target))
$succeed =
elseif(function_exists('move_uploaded_file') && @move_uploaded_file($source, $target))
$succeed =
elseif (@is_readable($source) && (@$fp_s = fopen($source, 'rb')) && (@$fp_t = fopen($target, 'wb')))
while (!feof($fp_s))
$s = @fread($fp_s, 1024 * 512);
@fwrite($fp_t, $s);
fclose($fp_s);
fclose($fp_t);
$succeed =
if($succeed)
$this-&error_code = 0;
@chmod($target, 0644);
@unlink($source);
$this-&error_code = 0;
public function thumb($image,$maxWidth=200,$maxHeight=50,$gen = 0,$interlace=true,$filepath = '',$is_preview = true)
= es_imagecls::getImageInfo($image);
if($info !== false)
= $info[0];
$srcHeight = $info[1];
$type = $info['type'];
$interlace
$interlace? 1:0;
unset($info);
if($maxWidth & 0 && $maxHeight & 0)
$scale = min($maxWidth/$srcWidth, $maxHeight/$srcHeight); // 计算缩放比例
elseif($maxWidth == 0)
$scale = $maxHeight/$srcH
elseif($maxHeight == 0)
$scale = $maxWidth/$srcW
$paths = pathinfo($image);
$paths['filename'] = trim(strtolower($paths['basename']),&.&.strtolower($paths['extension']));
$basefilename = explode(&_&,$paths['filename']);
$basefilename = $basefilename[0];
if(empty($filepath))
if($is_preview)
$thumbname = $paths['dirname'].'/'.$basefilename.'_'.$maxWidth.'x'.$maxHeight.'.jpg';
$thumbname = $paths['dirname'].'/'.$basefilename.'o_'.$maxWidth.'x'.$maxHeight.'.jpg';
$thumbname = $
$thumburl = str_replace(APP_ROOT_PATH,'./',$thumbname);
if($scale &= 1)
// 超过原图大小不再缩略
if(!$is_preview)
//非预览模式写入原图
file_put_contents($thumbname,file_get_contents($image));
//用原图写入
return array('url'=&$thumburl,'path'=&$thumbname);
// 缩略图尺寸
= (int)($srcWidth*$scale);
$height = (int)($srcHeight*$scale);
if($gen == 1)
$width = $maxW
$height = $maxH
// 载入原图
$createFun = 'imagecreatefrom'.($type=='jpg'?'jpeg':$type);
if(!function_exists($createFun))
$createFun = 'imagecreatefromjpeg';
$srcImg = $createFun($image);
//创建缩略图
if($type!='gif' && function_exists('imagecreatetruecolor'))
$thumbImg = imagecreatetruecolor($width, $height);
$thumbImg = imagecreate($width, $height);
if($gen == 1 && $maxWidth & 0 && $maxHeight & 0)
$resize_ratio = $maxWidth/$maxH
$src_ratio = $srcWidth/$srcH
if($src_ratio &= $resize_ratio)
$x = ($srcWidth - ($resize_ratio * $srcHeight)) / 2;
$width = ($height * $srcWidth) / $srcH
$y = ($srcHeight - ( (1 / $resize_ratio) * $srcWidth)) / 2;
$height = ($width * $srcHeight) / $srcW
// 复制图片
if(function_exists(&imagecopyresampled&))
imagecopyresampled($thumbImg, $srcImg, 0, 0, $x, $y, $width, $height, $srcWidth,$srcHeight);
imagecopyresized($thumbImg, $srcImg, 0, 0, $x, $y, $width, $height,
$srcWidth,$srcHeight);
if('gif'==$type || 'png'==$type) {
$background_color
imagecolorallocate($thumbImg,
指派一个绿色
imagecolortransparent($thumbImg,$background_color);
设置为透明色,若注释掉该行则输出绿色的图
// 对jpeg图形设置隔行扫描
if('jpg'==$type || 'jpeg'==$type)
imageinterlace($thumbImg,$interlace);
// 生成图片
imagejpeg($thumbImg,$thumbname,100);
imagedestroy($thumbImg);
imagedestroy($srcImg);
return array('url'=&$thumburl,'path'=&$thumbname);
public function make_thumb($srcImg,$srcWidth,$srcHeight,$type,$maxWidth=200,$maxHeight=50,$gen = 0)
$interlace
$interlace? 1:0;
if($maxWidth & 0 && $maxHeight & 0)
$scale = min($maxWidth/$srcWidth, $maxHeight/$srcHeight); // 计算缩放比例
elseif($maxWidth == 0)
$scale = $maxHeight/$srcH
elseif($maxHeight == 0)
$scale = $maxWidth/$srcW
if($scale &= 1)
// 超过原图大小不再缩略
// 缩略图尺寸
= (int)($srcWidth*$scale);
$height = (int)($srcHeight*$scale);
if($gen == 1)
$width = $maxW
$height = $maxH
//创建缩略图
if($type!='gif' && function_exists('imagecreatetruecolor'))
$thumbImg = imagecreatetruecolor($width, $height);
$thumbImg = imagecreatetruecolor($width, $height);
if($gen == 1 && $maxWidth & 0 && $maxHeight & 0)
$resize_ratio = $maxWidth/$maxH
$src_ratio = $srcWidth/$srcH
if($src_ratio &= $resize_ratio)
$x = ($srcWidth - ($resize_ratio * $srcHeight)) / 2;
$width = ($height * $srcWidth) / $srcH
$y = ($srcHeight - ( (1 / $resize_ratio) * $srcWidth)) / 2;
$height = ($width * $srcHeight) / $srcW
// 复制图片
if(function_exists(&imagecopyresampled&))
imagecopyresampled($thumbImg, $srcImg, 0, 0, $x, $y, $width, $height, $srcWidth,$srcHeight);
imagecopyresized($thumbImg, $srcImg, 0, 0, $x, $y, $width, $height,
$srcWidth,$srcHeight);
if('gif'==$type || 'png'==$type) {
$background_color
imagecolorallocate($thumbImg,
255,255,255);
指派一个绿色
imagecolortransparent($thumbImg,$background_color);
设置为透明色,若注释掉该行则输出绿色的图
// 对jpeg图形设置隔行扫描
if('jpg'==$type || 'jpeg'==$type)
imageinterlace($thumbImg,$interlace);
return $thumbI
public function water($source,$water,$alpha=80,$position=&0&)
//检查文件是否存在
if(!file_exists($source)||!file_exists($water))
//图片信息
$sInfo = es_imagecls::getImageInfo($source);
$wInfo = es_imagecls::getImageInfo($water);
//如果图片小于水印图片,不生成图片
if($sInfo[&0&] & $wInfo[&0&] || $sInfo['1'] & $wInfo['1'])
if(is_animated_gif($source))
require_once APP_ROOT_PATH.&system/utils/gif_encoder.php&;
require_once APP_ROOT_PATH.&system/utils/gif_reader.php&;
$gif = new GIFReader();
$gif-&load($source);
foreach($gif-&IMGS['frames'] as $k=&$img)
$im = imagecreatefromstring($gif-&getgif($k));
//为im加水印
$wCreateFun=&imagecreatefrom&.$wInfo['type'];
if(!function_exists($wCreateFun))
$wCreateFun = 'imagecreatefromjpeg';
$wImage=$wCreateFun($water);
//设定图像的混色模式
imagealphablending($wImage, true);
switch (intval($position))
//生成混合图像
imagecopymerge($sImage, $wImage, $posX, $posY, 0, 0, $wInfo[0],$wInfo[1],$alpha);
$posX=$sInfo[0]-$wInfo[0];
//生成混合图像
imagecopymerge($sImage, $wImage, $posX, $posY, 0, 0, $wInfo[0],$wInfo[1],$alpha);
$posY=$sInfo[1]-$wInfo[1];
//生成混合图像
imagecopymerge($sImage, $wImage, $posX, $posY, 0, 0, $wInfo[0],$wInfo[1],$alpha);
$posY=$sInfo[1]-$wInfo[1];
$posX=$sInfo[0]-$wInfo[0];
//生成混合图像
imagecopymerge($sImage, $wImage, $posX, $posY, 0, 0, $wInfo[0],$wInfo[1],$alpha);
$posY=$sInfo[1]/2-$wInfo[1]/2;
$posX=$sInfo[0]/2-$wInfo[0]/2;
//生成混合图像
imagecopymerge($sImage, $wImage, $posX, $posY, 0, 0, $wInfo[0],$wInfo[1],$alpha);
//end im加水印
ob_start();
imagegif($sImage);
$content = ob_get_contents();
ob_end_clean();
$frames [ ] = $
$framed [ ] = $img['frameDelay'];
$gif_maker = new GIFEncoder (
//bin为二进制
$image_rs = $gif_maker-&GetAnimation ( );
//如果没有给出保存文件名,默认为原图像名
@unlink($source);
//保存图像
file_put_contents($source,$image_rs);
//建立图像
$sCreateFun=&imagecreatefrom&.$sInfo['type'];
if(!function_exists($sCreateFun))
$sCreateFun = 'imagecreatefromjpeg';
$sImage=$sCreateFun($source);
$wCreateFun=&imagecreatefrom&.$wInfo['type'];
if(!function_exists($wCreateFun))
$wCreateFun = 'imagecreatefromjpeg';
$wImage=$wCreateFun($water);
//设定图像的混色模式
imagealphablending($wImage, true);
switch (intval($position))
//生成混合图像
imagecopymerge($sImage, $wImage, $posX, $posY, 0, 0, $wInfo[0],$wInfo[1],$alpha);
$posX=$sInfo[0]-$wInfo[0];
//生成混合图像
imagecopymerge($sImage, $wImage, $posX, $posY, 0, 0, $wInfo[0],$wInfo[1],$alpha);
$posY=$sInfo[1]-$wInfo[1];
//生成混合图像
imagecopymerge($sImage, $wImage, $posX, $posY, 0, 0, $wInfo[0],$wInfo[1],$alpha);
$posY=$sInfo[1]-$wInfo[1];
$posX=$sInfo[0]-$wInfo[0];
//生成混合图像
imagecopymerge($sImage, $wImage, $posX, $posY, 0, 0, $wInfo[0],$wInfo[1],$alpha);
$posY=$sInfo[1]/2-$wInfo[1]/2;
$posX=$sInfo[0]/2-$wInfo[0]/2;
//生成混合图像
imagecopymerge($sImage, $wImage, $posX, $posY, 0, 0, $wInfo[0],$wInfo[1],$alpha);
//如果没有给出保存文件名,默认为原图像名
@unlink($source);
//保存图像
imagejpeg($sImage,$source,100);
imagedestroy($sImage);
if(!function_exists('image_type_to_extension'))
function image_type_to_extension($imagetype)
if(empty($imagetype))
switch($imagetype)
case IMAGETYPE_GIF
: return '.gif';
case IMAGETYPE_JPEG
: return '.jpeg';
case IMAGETYPE_PNG
: return '.png';
case IMAGETYPE_SWF
: return '.swf';
case IMAGETYPE_PSD
: return '.psd';
case IMAGETYPE_BMP
: return '.bmp';
case IMAGETYPE_TIFF_II : return '.tiff';
case IMAGETYPE_TIFF_MM : return '.tiff';
case IMAGETYPE_JPC
: return '.jpc';
case IMAGETYPE_JP2
: return '.jp2';
case IMAGETYPE_JPX
: return '.jpf';
case IMAGETYPE_JB2
: return '.jb2';
case IMAGETYPE_SWC
: return '.swc';
case IMAGETYPE_IFF
: return '.aiff';
case IMAGETYPE_WBMP
: return '.wbmp';
case IMAGETYPE_XBM
: return '.xbm';
//该代码片段来自于: /codes/php/5993
2.get_spec_img()调用图片类,然后再用下面的方法保存不同规格的图片并返回图片连接
//获取相应规格的图片地址
//gen=0:保持比例缩放,不剪裁,如高为0,则保证宽度按比例缩放
gen=1:保证长宽,剪裁
function get_spec_image($img_path,$width=0,$height=0,$gen=0,$is_preview=true)
if($width==0)
$new_path = $img_
$img_name = substr($img_path,0,-4);
$img_ext = substr($img_path,-3);
if($is_preview)
$new_path = $img_name.&_&.$width.&x&.$height.&.jpg&;
$new_path = $img_name.&o_&.$width.&x&.$height.&.jpg&;
if(!file_exists($new_path))
require_once &imagecls.php&;
$imagec = new imagecls();
$thumb = $imagec-&thumb($img_path,$width,$height,$gen,true,&&,$is_preview);
if(app_conf(&PUBLIC_DOMAIN_ROOT&)!='')
$paths = pathinfo($new_path);
$path = str_replace(&./&,&&,$paths['dirname']);
$filename = $paths['basename'];
$pathwithoupublic = str_replace(&public/&,&&,$path);
$file_data = @file_get_contents($path.$file);
$img = @imagecreatefromstring($file_data);
if($img!==false)
$save_path = &public/&.$
if(!is_dir($save_path))
@mk_dir($save_path);
@file_put_contents($save_path.$name,$file_data);
return $new_
//该代码片段来自于: /codes/php/5993
3.使用方法:
//im:将店铺图片保存为3种规格:小图:48x48,中图120x120,大图200x200
$small_url=get_spec_image($data['image'],48,48,0);
$&span id=&result_box& class=&short_text& lang=&en&&&span&middle_url&/span&&/span&=get_spec_image($data['image'],120,120,0);
$big_url=get_spec_image($data['image'],200,200,0);
//该代码片段来自于: /codes/php/5993
相关代码片段:
最新PHP代码片段
合作网站:ps中怎么把文字添加到几张jpg图片的同一位置_百度知道
ps中怎么把文字添加到几张jpg图片的同一位置
提问者采纳
几张图片的大小都一样的话,可以第一张设置好位置,制作成动作,后面的图片都按动作就可以了。
怎么制作成动作啊?
动作面板里有新建动作,把你所做的步骤都见到动作里就行了
还是不明白,我新建了动作,但是怎么放进去啊?
就是新建一个动作,动作呢就像摄影机一样,你只要新建了,就开始录制了,然后你就做你的,居中对齐啊什么的,你的操作都会被动作记录,你操作好了,动作面板下面有个正方形的,是停止动作,点击之后,停止录制。这就完成一个动作了,你后面的只要是做跟它一样的,都可以选择动作,然后按下面的三角键播放,就ok了。
那我新建动作之后要按开始吗?
新建就等于是开始了,不过你紧紧只要同一位置的话,就复制图层,然后编辑菜单里有个粘贴到当前位置,这样就行了啊
提问者评价
谢谢啊 我知道了
其他类似问题
为您推荐:
其他4条回答
用可牛,美图之类的都可以实现。在图片上加水印,水印可以设置为图片,也可以是文字,位置可以自己选择!!
若在同一个文件,设定不同的图层。在不同图层,把图片位置放好,接下来输入文字。此文字输入完成后,摆好位置,此时第一张图和文字位置固定。隐藏第一个图片层,此时显示第二张图片层,文字自然在原位置。以此类推,或是不断复制文字层。。。若你想把几张图片放在一张图里。你可以新建一个,每一个新的图层加文字,就链接拖入新文件,这样文字位置也不会变换。
想打什么字,在JPG图片上打就可以
LZ,PS不是有默认的帮助文件吗?先把那个好好看看就不会问这样的问题了啊
您可能关注的推广
jpg图片的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁我淘宝盗了别人的图,我想防止被投诉,我把图片加水印。我在修改图片一点点的饱和度。这样对方还可以投诉_百度知道
我淘宝盗了别人的图,我想防止被投诉,我把图片加水印。我在修改图片一点点的饱和度。这样对方还可以投诉
我淘宝盗了别人的图,我想防止被投诉,我把图片加水印。我在修改图片一点点的饱和度。这样对方还可以投诉我吗?大神们帮我想想办法,我知道这不是好事,但是他的图片确实好卖。
我有更好的答案
可以投诉,只要他有原图,随时都可以投诉,分分钟下架.不过一般你没卖到超高销量的时候是没人投诉你的
你好,可以用ps去水印,然后加入自己的东西,网店上架的类目最好不要一样,这样差不多可以避免
其他类似问题
为您推荐:
水印的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁

我要回帖

更多关于 我知道你不爱我 的文章

 

随机推荐