有啥办法把图片在缩小,缩到毛球修剪器边上

如何将装修模板的图片缩小到30K以内还清晰?
刚开始做装修模板,上传的图片总是要求在30K以内,做了很多次都是很模糊的,非常难看。现在把摸索出来的方法分享给各位正在摸索中的卖家。1.首先把选择好的图片缩小为想要的图片的尺寸。2.在PS中打开图片,点击上方的文件选择存储为Web所用格式.3.出来一个由imageready提供支持的处理框。选择original,就是你的原图。4.在右边的功能选项中根据图片大小和具体要求进行编辑,选择图片品质:低、中、高等。品质范围在0-100之间选择60左右就差不多了。模糊度也可以选择,0最清晰,2最模糊。具体根据自己的要求调整。5.全部选择好后,点击右上方的存储就OK啦用这种方法处理后的图片就更清晰了。就算在30K内也一点都不影响哦
注册时间:
使用有问题?
匿名回复(匿名回复的情况,大家不会看到你的身份)
点,您的助威点数还有点
提醒:评论最多输入30个汉字,不支持英文和数字阅读数:3102
最后更新于:
求助!怎样把拍下的照片缩小剪切成论坛规定的大小呀
共获得金币 0
我想发图片,可是系统说我的图片太大,不符合规定,求助!怎样才能设定成规定大小呀
共获得金币 0
PS里面修改图片大小尺寸就可以了
共获得金币 0
PS是需要下载的还是需要软件安装的啊
共获得金币 0
各位帮帮忙拉
共获得金币 0
打开附件里面的画图,在里面打开要修改的图片,上面的“图像”菜单里有拉伸的,可以缩小和放大
共获得金币 0
改像素,一般横的300够了。
共获得金币 0
偶是用QQ截图的,截过一般都能用的.
共获得金币 0
用PS改改~~~~~~~~~~~~~~
共获得金币 0
使用(可批量传图、插入视频等)
&&Ctrl + Enter 快速发布
热门推荐:java 对上传图片缩放剪切 - 灯光的世界 - ITeye技术网站
博客分类:
一般上传图片分三步:
第一步:将原始图片上传到服务器端保存,不妨命名为src.jpg
第二步:在浏览器端将src.jpg显示出来,然后使用jQuery,对其进行“客户端剪切”。
&&&&&&&&&&&&& 所谓客户端剪切就是根据用户在界面中对原始图片放大,移动,剪切时,获得一些参数。
&&&&&&&&&&&& 具体需要六个参数(srcWidth, srcHeight,& rect.x,& rect.y& , rect.width, rect.height)参数。
&&&&&&&&&&&& 其中,srcWidth 和srcHeight表明原始图片在客户端放大后的宽和高
&&&&&&&&&&&&&&&&&&&&&& rect.x和rect.y表明剪切部分相对(srcWidth, srcHeight)的起始坐标
&&&&&&&&&&&&&&&&&&&&&& rect.width和rect.height表示需要剪切的图片的大小。
第三步:获取第二步得到的参数,对内存中原始图片先进行预处理(按照srcWidth和srcHeight进行缩放)、剪切。
&&&&&&&&&&&& 然后对预处理后的内存图像剪切,打印出来。
第一步实现比较简单,第二步需要学习jQuery,网上例子很多。我们重点讨论第三步, java切图。
1.main函数
package syj.
import java.awt.R
import java.io.F
import java.io.IOE
import syj.util.ImageH
public class Test {
public static void main(String[] args) throws IOException {
String picPath = "img/src.jpg";
String destPath = "img/result.jpg";
Rectangle rect = new Rectangle(0, 0, );
ImageHepler.cut(picPath, destPath, , rect);
2.关键图像操作函数
package syj.
import java.awt.C
import java.awt.G
import java.awt.I
import java.awt.R
import java.awt.image.BufferedI
import java.io.F
import java.io.IOE
import java.io.PrintS
import javax.imageio.ImageIO;
public class ImageHepler {
* @Description: 将srcImageFile裁剪后生成destImageFile
* @param srcImageFile
* @param destImageFile
* @param width
原始图预处理后width
* @param height
原始图预处理后height
* @param rect
目标图输出的格式(rect.x, rect.y, rect.width, rect.height)
* @throws IOException
* @author Sun Yanjun
public static void cut(String srcImageFile, String destImageFile, int width, int height, Rectangle rect) throws IOException {
Image image = ImageIO.read(new File(srcImageFile));
BufferedImage bImage = makeThumbnail(image, width, height);
//把原始图片输出
ImageIO.write(bImage, "jpg",new File("img/src2.jpg"));
saveSubImage(bImage, rect, new File(destImageFile));
* @Description: 将srcImageFile裁剪后生成destImageFile
* @param srcImageFile
* @param destImageFile
* @param width
原始图预处理后width
* @param height
原始图预处理后height
* @param rect
目标图输出的格式(rect.x, rect.y, rect.width, rect.height)
* @throws IOException
* @author Sun Yanjun
public static void cut(File srcImageFile, File destImageFile, int width, int height, Rectangle rect) throws IOException {
Image image = ImageIO.read(srcImageFile);
BufferedImage bImage = makeThumbnail(image, width, height);
saveSubImage(bImage, rect, destImageFile);
* @Description: 对原始图片根据(x, y, width, height) = (0, 0, width, height)进行缩放,生成BufferImage
* @param img
* @param width 预处理后图片的宽度
* @param height 预处理后图片高度
* @author Sun Yanjun
* @throws IOException
private static BufferedImage makeThumbnail(Image img, int width, int height) throws IOException {
BufferedImage tag = new BufferedImage(width, height, 1);
Graphics g = tag.getGraphics();
g.drawImage(img.getScaledInstance(width, height, 4), 0, 0, null);
g.dispose();
* @Description: 对BufferImage按照(x, y, width, height) = (subImageBounds.x, subImageBounds.y, subImageBounds.width, subImageBounds.height)进行裁剪
如果subImageBounds范围过大,则用空白填充周围的区域。
* @param image
* @param subImageBounds
* @param destImageFile
* @throws IOException
* @author Sun Yanjun
private static void saveSubImage(BufferedImage image, Rectangle subImageBounds, File destImageFile) throws IOException {
String fileName = destImageFile.getName();
String formatName = fileName.substring(fileName.lastIndexOf('.') + 1);
BufferedImage subImage = new BufferedImage(subImageBounds.width, subImageBounds.height, 1);
Graphics g = subImage.getGraphics();
if ((subImageBounds.width & image.getWidth())
|| (subImageBounds.height & image.getHeight())) {
int left = subImageBounds.x;
int top = subImageBounds.y;
if (image.getWidth() & subImageBounds.width)
left = (subImageBounds.width - image.getWidth()) / 2;
if (image.getHeight() & subImageBounds.height)
top = (subImageBounds.height - image.getHeight()) / 2;
g.setColor(Color.white);
g.fillRect(0, 0, subImageBounds.width, subImageBounds.height);
g.drawImage(image, left, top, null);
ImageIO.write(image, formatName, destImageFile);
g.drawImage(image.getSubimage(subImageBounds.x, subImageBounds.y,
subImageBounds.width, subImageBounds.height), 0, 0, null);
g.dispose();
ImageIO.write(subImage, formatName, destImageFile);
3.一个域对象,获取剪切信息
package syj.
public class ImageVo {
private int txt_
private int txt_
private int txt_
private int txt_
private int txt_DropW
private int txt_DropH
private float imageZ
public int getTxt_width() {
return txt_
public void setTxt_width(int txtWidth) {
txt_width = txtW
public int getTxt_height() {
return txt_
public void setTxt_height(int txtHeight) {
txt_height = txtH
public int getTxt_top() {
return txt_
public void setTxt_top(int txtTop) {
txt_top = txtT
public int getTxt_left() {
return txt_
public void setTxt_left(int txtLeft) {
txt_left = txtL
public int getTxt_DropWidth() {
return txt_DropW
public void setTxt_DropWidth(int txtDropWidth) {
txt_DropWidth = txtDropW
public float getImageZoom() {
return imageZ
public void setImageZoom(float imageZoom) {
this.imageZoom = imageZ
public void setPicture(String picture) {
this.picture =
public String getPicture() {
public void setTxt_DropHeight(int txt_DropHeight) {
this.txt_DropHeight = txt_DropH
public int getTxt_DropHeight() {
return txt_DropH
liu2811751
浏览: 37439 次
来自: 杭州梨树修剪的常用几种方法_百度知道
梨树修剪的常用几种方法
提问者采纳
1、冬季修剪、主要修剪短截、疏剪、缩缓放交互进行梨树枝条直立宜采用芽外蹬或双芽外蹬转主换张角度其短截疏剪缩等操作与其树相同(1):缓放:称甩放或放即枝加修剪缓放缓势增加短枝力于营养积累促进枝条增粗旺枝转缓并转形花芽幼树缓提早结缓放斜枝(2):芽外蹬或双芽外蹬指冬季修剪延枝短截使剪口芽向直立芽第二芽或第三芽整形枝所要求延伸向芽剪口便直立旺迫使第二芽或第三芽发枝角度张冬季剪口旺枝剪再用第二芽发枝或第三枝发枝延枝种叫芽外蹬蹬第二芽叫单芽外蹬蹬第三芽叫双芽外蹬(3)转主换:用缩修剪角度张背枝即主枝枝条代替主枝向外延伸使角度张或者用背枝即主枝枝条使角度缩或向左向右改换所需延伸向2、夏季修剪称期修剪由于期树体旺盛反应敏所修剪抑制作用较般宜轻修剪其抹芽、除萌、摘、剪梢、环割、拉枝、吊枝(源:吉水县农业局)
其他类似问题
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁查看: 2756|回复: 4
请问关于会声会影图片(视频)缩放的问题
在线时间 小时
一张全屏图片,
然后将它缩小到屏幕一角,
屏幕中间继续放另外一张图片,
请问这个缩小的功能在会声会影里怎么做啊?
不是“摇动和缩放”功能里的将图片内容放大缩小,
是整张图片缩小到屏幕一角,
很早之前用会声会影的旧版本做过,但是现在好像没有那个功能了,汗
哪位大大知道啊?
在线时间 小时
我反正没发现这个功能,也没做出来过。我知道Pr有这个能耐......
我一般用淡入淡出或者其它方法得到类似效果。
在线时间 小时
调用red3.0
在线时间 小时
谢谢,找到这个插件闹
在线时间 小时
楼主是以前百度黎姿吧那个吾爱可乐吗?}

我要回帖

更多关于 毛球修剪器 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信