2012-08-10 23 views
0

我最近不得不将我的网站从一台服务器移动到另一台服务器,看起来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。

+0

你肯定知道是哪个操作系统您老了,这新的服务器上运行?!? – 2012-08-10 20:38:05

+0

因此,如果您不知道更改的效果是什么,就更改脚本,然后您抱怨它*创建的文件中包含Imagemagick设置,而不是图像数据* *!? :-) – 2012-08-10 20:41:42

回答

0

Fred's 3Drotate script仍然适合我。我没有理由抱怨。

这是在Mac OS X Lion中,使用bash GNU bash, Version 4.2.37(2)-release版本....

强烈建议您重新下载脚本,然后再试一次。如果你要报告bug,你应该给信息关于您的操作系统,你的Bash和你ImageMagick的版本...

哦,see also this page,其中规定...

  • ...你需要ImageMagick的v6.3.5.0或更高的脚本工作,
  • ...给出了有关解决一些提示和
  • ...告诉你作者的电子邮件地址,以便你可以与他联系,讨论您的问题。
0

随着IM 6.7.6.7和IM 6.7.8.3之间ImageMagick对颜色空间变化和灰度的线性变化的最近更改,我不得不经历最近的所有脚本并进行适当的更改。到目前为止,我只能通过我的脚本的一部分,但已经修复了大约1/3到1/2,但3Drotate自2011年11月26日上一次以来不需要任何更改。但是你的版本太旧了,所以你需要更新。您似乎遇到的问题可能会或可能不会有关系。但似乎与unix实用程序expr有关。我会确保你有一个当前版本的安装。在我的Mac OSX雪豹两个IM 6.7.6.0和6.7.8.9下面的工作完全正常,我

3DROTATE锅= 45 =倾斜45自动= ZC mandril.jpg mandril_test.jpg

第一个问题我会问,你的确切命令行是什么。正如你所看到的,这些参数与我的其他脚本有些不同,因为它们包含等号。

如果您仍然有问题,他们向我报告或在http://www.imagemagick.org/discourse-server/viewforum.php?f=1 ImageMagick的话语论坛

弗雷德

+0

谢谢弗雷德。我没有建立联系。我只是给你发电子邮件。我要去看expr看看我能找到什么。事实证明,我曾经工作过的旧服务器,即使3Drotate和IM都没有更新,也不再工作。我认为这是更多的操作系统问题。 – Ward 2012-08-13 18:50:33