English 中文(简体)
• 使影像环相带边界
原标题:make the images round border in imagemagick

我有一组带有光谱宽度和高度的图像。 现在,我想到所有有四舍五入的图像。 因此,有人可以告诉我,如何把图像中的所有图像混为一谈,我正在使用Sphp。 任何帮助或建议都非常可观。

问题回答

页: 1 涵盖所有需要改成像以下线的文件:

$imageWidth = 800;
$imageHeight = 600;
$borderSize = 20;
foreach($files as $file)
{
  exec( convert -size  .$imageWidth. x .$imageHeight.  xc:none -draw "roundRectangle 0,0  .$imageWidth. , .$imageHeight.   .$borderSize. , .$borderSize. " -fill white  .$file.  -compose SrcIn -composite +compress out- .file);
}

或许,你想要通过档案检查图像大小。





相关问题
phpThumb cannot find ImageMagick / Imagick

I m having a problem with phpThumb. It says in the documentation that to get the best out of it, use ImageMagick / Imagick. I ve got this installed on the Server (running Centos 5.1), and can run ...

Properly converting a CMYK image to RGB with RMagick

I have been using the below to do a color conversion if @image.colorspace == Magick::CMYKColorspace # @image.colorspace #=> CMYKColorspace=12 @image.colorspace = Magick::...

Imagemagick convert pdf to png

I am rather new to using the command line and php. That being said I have been trying to figure out how to use ImageMagick with the exec() function. I have this currently, $command="/usr/local/lib/...

ImageMagick failing to convert to JPG

We recently installed the latest version of ImageMagick onto our Linux server. I seem to be having issues performing the most basic of tasks. I am running this command line: /usr/bin/convert /...

热门标签