我最近不得不将我的网站从一台服务器移动到另一台服务器,看起来Fred's 3Drotate script会创建在其中具有Imagemagick设置的文件,而不是图像数据。当我第一次运行该脚本,我收到以下错误:Imagemagick&3Drotate
expr: warning: unportable BRE: `^[0-9][0-9]*$': using `^' as the first character of the basic regular expression is not portable; it is being ignored expr: warning: unportable BRE: `^[+-][0-9][0-9]*$': using `^' as the first character of the basic regular expression is not portable; it is being ignored expr: warning: unportable BRE: `^[0-9]*[\\.][0-9]*$': using `^' as the first character of the basic regular expression is not portable; it is being ignored expr: warning: unportable BRE: `^[+-][0-9]*[\\.][0-9]*$': using `^' as the first character of the basic regular expression is not portable; it is being ignored
我可以通过删除“^”字符的每个实例来解决这个问题。运行该脚本,它创建了一个几百KB的文件,但内容似乎是一个配置,如:
id=MagickCache
quantum-depth=16
class=DirectClass colors=0 matte=False
columns=500 rows=500 depth=8
colorspace=sRGB
compression=JPEG quality=75
units=PixelsPerInch
resolution=72x72
page=500x500+0+0
rendering-intent=Perceptual
gamma=0.454545
red-primary=0.64,0.33 green-primary=0.3,0.6 blue-primary=0.15,0.06
white-point=0.3127,0.329
date:create=2012-08-10T20:44:21-07:00
date:modify=2012-08-10T20:44:21-07:00
jpeg:colorspace=2
jpeg:sampling-factor=2x2,1x1,1x1
任何想法?我正在运行imagemagick版本6.7.8-9,它比我的原始服务器
上的更新,但是我不知道哪个版本是
。
更新:
我在使用3DROTATE由弗雷德在10年3月11日修订了CentOS的盒子。 ImageMagick是版本6.7.8-9,而我的旧服务器,也是CentOS使用版本6.7.6-0。
你肯定知道是哪个操作系统您老了,这新的服务器上运行?!? – 2012-08-10 20:38:05
因此,如果您不知道更改的效果是什么,就更改脚本,然后您抱怨它*创建的文件中包含Imagemagick设置,而不是图像数据* *!? :-) – 2012-08-10 20:41:42