dreamhost 好用吗_在Dreamhost上安装pngcrush

2024-03-20 21:30

本文主要是介绍dreamhost 好用吗_在Dreamhost上安装pngcrush,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

dreamhost 好用吗

dreamhost 好用吗

pngcrush is an excellent optimizer for png images, simple and fast, highly recommended. Basically any time before you post a PNG on the web, you should run it through PNGCrush. It's a command line utility, there's a quick way to integrate pngcrush in windows explorer. (note to self: I actually wrote a wordpress plugin to do crush uploaded images, gotta find and post it)

pngcrush是用于png图像的出色优化器,简单,快速,强烈建议使用。 基本上,在将PNG发布到网络上之前的任何时间,都应该通过PNGCrush运行它。 这是一个命令行实用程序,有一种将pngcrush集成到Windows资源管理器中的快速方法。 (请注意:我实际上写了一个wordpress插件来粉碎上传的图像,必须查找并发布)

I'm working (together with Nicole) on an online image optimizer, using the free command line tools I talked about at PHP Quebec, Montreal, O'Reilly's Velocity and the Yahoo! Performance pages. The tool will be free, of course, and hosted on Dreamhost. OK, finally getting to the point, am I?

我正在(与Nicole一起)使用我在PHP Quebec,Montreal , O'Reilly的Velocity和Yahoo!上讨论的免费命令行工具,开发一个在线图像优化器。 绩效页面。 该工具当然是免费的,并托管在Dreamhost上。 好,终于到了要点,是吗?

Here's what I did to install pngcrush on Dreamhost, hope it helps anyone out there who's sweating with the same task.

这是我在Dreamhost上安装pngcrush所做的工作,希望它可以帮助正在忙于同一任务的任何人。

  1. ssh to your dreamhost box, you need to give yourself ssh privileges from the dreamhost control panel

    ssh到您的dreamhost框中,您需要从dreamhost控制面板中给自己ssh特权

  2. mkdir tmp - make a temp directory

    mkdir tmp一个临时目录

  3. cd tmp - enter the temp directory

    cd tmp进入临时目录

  4. wget http://voxel.dl.sourceforge.net/sourceforge/pmt/pngcrush-1.6.10.tar.gz - download latest version of the pngcrush source code, this is the sourceforge mirror, closest to me, yours might be different and the pngcrush version might be newer at the time you install it, you can check here

    wget http://voxel.dl.sourceforge.net/sourceforge/pmt/pngcrush-1.6.10.tar.gz下载pngcrush源代码的最新版本,这是sourceforge镜像,离我最近,您的可能有所不同并且pngcrush版本在安装时可能是较新的,您可以在此处查看

  5. tar zxvf pngcrush-1.6.10.tar.gz - uncompress the code. This creates a new directory, enter it like so: cd pngcrush-1.6.10

    tar zxvf pngcrush-1.6.10.tar.gz解压缩代码。 这将创建一个新目录,如下所示输入: cd pngcrush-1.6.10

  6. now all you need to do is run make, but didn't work for me, so I edited the Makefile file first, like so vi Makefile. In the vi editor, press i to enter INSERT mode and once you're done with the changes, press ESC, then type :wq (meaining write, quit). Here I removed the version information from the gcc compiler, so the two lines I edited became

    现在您所需要做的就是运行make ,但是对我不起作用,所以我首先编辑了Makefile文件,就像vi Makefile 。 在vi编辑器中,按i进入INSERT模式,完成更改后,按ESC,然后键入:wq (表示写入,退出)。 在这里,我从gcc编译器中删除了版本信息,所以我编辑的两行变成了

    CC = gcc
    LD = gcc
    
  7. make - this compiles the pngcrush code and creates a binary called pngcrush

    make -这编译pngcrush代码,并创建了一个名为二进制pngcrush

  8. cp pngcrush /usr/bin/ - copy the new binary to where binaries usually live

    cp pngcrush /usr/bin/ -将新的二进制文件复制到二进制文件通常所在的位置

  9. All set, try if everything is ok pngcrush, this should display the pngcrush's help information

    全部设置,如果一切正常,请尝试pngcrush ,这应该显示pngcrush的帮助信息

Crush'em PNG!(Crush'em PNGs!)

Like so: pngcrush image.png -rem alla -reduce -brute result.png

像这样: pngcrush image.png -rem alla -reduce -brute result.png

需要托管吗? (Need hosting?)

[advertisement]Dreamhost is a really good host, use this code MAXDISCO for $50 off [/advertisement] 😉

[广告] Dreamhost是一个非常好的主机,请使用此代码MAXDISCO减$ 50 [/广告]😉

Tell your friends about this post on Facebook and Twitter

在Facebook和Twitter上告诉您的朋友有关此帖子的信息

翻译自: https://www.phpied.com/installing-pngcrush-at-dreamhost/

dreamhost 好用吗

这篇关于dreamhost 好用吗_在Dreamhost上安装pngcrush的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/830780

相关文章

Win10安装Maven与环境变量配置过程

《Win10安装Maven与环境变量配置过程》本文介绍Maven的安装与配置方法,涵盖下载、环境变量设置、本地仓库及镜像配置,指导如何在IDEA中正确配置Maven,适用于Java及其他语言项目的构建... 目录Maven 是什么?一、下载二、安装三、配置环境四、验证测试五、配置本地仓库六、配置国内镜像地址

Python安装Pandas库的两种方法

《Python安装Pandas库的两种方法》本文介绍了三种安装PythonPandas库的方法,通过cmd命令行安装并解决版本冲突,手动下载whl文件安装,更换国内镜像源加速下载,最后建议用pipli... 目录方法一:cmd命令行执行pip install pandas方法二:找到pandas下载库,然后

Linux系统中查询JDK安装目录的几种常用方法

《Linux系统中查询JDK安装目录的几种常用方法》:本文主要介绍Linux系统中查询JDK安装目录的几种常用方法,方法分别是通过update-alternatives、Java命令、环境变量及目... 目录方法 1:通过update-alternatives查询(推荐)方法 2:检查所有已安装的 JDK方

SQL Server安装时候没有中文选项的解决方法

《SQLServer安装时候没有中文选项的解决方法》用户安装SQLServer时界面全英文,无中文选项,通过修改安装设置中的国家或地区为中文中国,重启安装程序后界面恢复中文,解决了问题,对SQLSe... 你是不是在安装SQL Server时候发现安装界面和别人不同,并且无论如何都没有中文选项?这个问题也

2025版mysql8.0.41 winx64 手动安装详细教程

《2025版mysql8.0.41winx64手动安装详细教程》本文指导Windows系统下MySQL安装配置,包含解压、设置环境变量、my.ini配置、初始化密码获取、服务安装与手动启动等步骤,... 目录一、下载安装包二、配置环境变量三、安装配置四、启动 mysql 服务,修改密码一、下载安装包安装地

Redis MCP 安装与配置指南

《RedisMCP安装与配置指南》本文将详细介绍如何安装和配置RedisMCP,包括快速启动、源码安装、Docker安装、以及相关的配置参数和环境变量设置,感兴趣的朋友一起看看吧... 目录一、Redis MCP 简介二、安www.chinasem.cn装 Redis MCP 服务2.1 快速启动(推荐)2.

在macOS上安装jenv管理JDK版本的详细步骤

《在macOS上安装jenv管理JDK版本的详细步骤》jEnv是一个命令行工具,正如它的官网所宣称的那样,它是来让你忘记怎么配置JAVA_HOME环境变量的神队友,:本文主要介绍在macOS上安装... 目录前言安装 jenv添加 JDK 版本到 jenv切换 JDK 版本总结前言China编程在开发 Java

Linux下在线安装启动VNC教程

《Linux下在线安装启动VNC教程》本文指导在CentOS7上在线安装VNC,包含安装、配置密码、启动/停止、清理重启步骤及注意事项,强调需安装VNC桌面以避免黑屏,并解决端口冲突和目录权限问题... 目录描述安装VNC安装 VNC 桌面可能遇到的问题总结描js述linux中的VNC就类似于Window

虚拟机Centos7安装MySQL数据库实践

《虚拟机Centos7安装MySQL数据库实践》用户分享在虚拟机安装MySQL的全过程及常见问题解决方案,包括处理GPG密钥、修改密码策略、配置远程访问权限及防火墙设置,最终通过关闭防火墙和停止Net... 目录安装mysql数据库下载wget命令下载MySQL安装包安装MySQL安装MySQL服务安装完成

JAVA中安装多个JDK的方法

《JAVA中安装多个JDK的方法》文章介绍了在Windows系统上安装多个JDK版本的方法,包括下载、安装路径修改、环境变量配置(JAVA_HOME和Path),并说明如何通过调整JAVA_HOME在... 首先去oracle官网下载好两个版本不同的jdk(需要登录Oracle账号,没有可以免费注册)下载完