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

相关文章

最详细安装 PostgreSQL方法及常见问题解决

《最详细安装PostgreSQL方法及常见问题解决》:本文主要介绍最详细安装PostgreSQL方法及常见问题解决,介绍了在Windows系统上安装PostgreSQL及Linux系统上安装Po... 目录一、在 Windows 系统上安装 PostgreSQL1. 下载 PostgreSQL 安装包2.

Maven如何手动安装依赖到本地仓库

《Maven如何手动安装依赖到本地仓库》:本文主要介绍Maven如何手动安装依赖到本地仓库问题,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录一、下载依赖二、安装 JAR 文件到本地仓库三、验证安装四、在项目中使用该依赖1、注意事项2、额外提示总结一、下载依赖登

如何在Mac上安装并配置JDK环境变量详细步骤

《如何在Mac上安装并配置JDK环境变量详细步骤》:本文主要介绍如何在Mac上安装并配置JDK环境变量详细步骤,包括下载JDK、安装JDK、配置环境变量、验证JDK配置以及可选地设置PowerSh... 目录步骤 1:下载JDK步骤 2:安装JDK步骤 3:配置环境变量1. 编辑~/.zshrc(对于zsh

如何在pycharm安装torch包

《如何在pycharm安装torch包》:本文主要介绍如何在pycharm安装torch包方式,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录在pycharm安装torch包适http://www.chinasem.cn配于我电脑的指令为适用的torch包为总结在p

在PyCharm中安装PyTorch、torchvision和OpenCV详解

《在PyCharm中安装PyTorch、torchvision和OpenCV详解》:本文主要介绍在PyCharm中安装PyTorch、torchvision和OpenCV方式,具有很好的参考价值,... 目录PyCharm安装PyTorch、torchvision和OpenCV安装python安装PyTor

Python Transformer 库安装配置及使用方法

《PythonTransformer库安装配置及使用方法》HuggingFaceTransformers是自然语言处理(NLP)领域最流行的开源库之一,支持基于Transformer架构的预训练模... 目录python 中的 Transformer 库及使用方法一、库的概述二、安装与配置三、基础使用:Pi

如何解决mmcv无法安装或安装之后报错问题

《如何解决mmcv无法安装或安装之后报错问题》:本文主要介绍如何解决mmcv无法安装或安装之后报错问题,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录mmcv无法安装或安装之后报错问题1.当我们运行YOwww.chinasem.cnLO时遇到2.找到下图所示这里3.

Python 安装和配置flask, flask_cors的图文教程

《Python安装和配置flask,flask_cors的图文教程》:本文主要介绍Python安装和配置flask,flask_cors的图文教程,本文通过图文并茂的形式给大家介绍的非常详细,... 目录一.python安装:二,配置环境变量,三:检查Python安装和环境变量,四:安装flask和flas

Win11安装PostgreSQL数据库的两种方式详细步骤

《Win11安装PostgreSQL数据库的两种方式详细步骤》PostgreSQL是备受业界青睐的关系型数据库,尤其是在地理空间和移动领域,:本文主要介绍Win11安装PostgreSQL数据库的... 目录一、exe文件安装 (推荐)下载安装包1. 选择操作系统2. 跳转到EDB(PostgreSQL 的

Linux系统中卸载与安装JDK的详细教程

《Linux系统中卸载与安装JDK的详细教程》本文详细介绍了如何在Linux系统中通过Xshell和Xftp工具连接与传输文件,然后进行JDK的安装与卸载,安装步骤包括连接Linux、传输JDK安装包... 目录1、卸载1.1 linux删除自带的JDK1.2 Linux上卸载自己安装的JDK2、安装2.1