ImageMagick

Why would converting CMYK image to sRGB for display on web work locally, but not on prod server?

梦想与她 提交于 2020-06-29 04:24:12
问题 Our graphic artist is delivering image ready for print in CMYK colorspace JPG format, which is correct for printing. I am converting these for display on the web. I understand the "best" thing to do is convert the src.jpg to sRGB colorspace. I've tried both command line using convert and Imagick approach using transformImageColorspace() and find it works fine on my local machine (Fedora 32 Linux) but doesn't work on the production server (CentOS 7.3 Linux). We've had this process working for

How to convert .PDF file to .PNG using Imagemagick PHP api

自闭症网瘾萝莉.ら 提交于 2020-06-25 04:18:48
问题 i want to convert .pdf file to .png file using Imagemagick php API. we can do this from shell using this: $convert sample.pdf sample_image.png we can issue this command using php exec() function but due to some reason(security) i disabled the execution of shell commands using php. so now tell me the solution that how can i convert my .pdf file to .png file without using the php exec() function? there is another discussion about this here but it's not very clear. -Thanks in advance Peeyush

ImageMagick General way to convert background-removed product photo into masked area for Connected Component Analysis shape

强颜欢笑 提交于 2020-06-01 05:10:00
问题 Trying to figure out the first step in ImageMagick - Trim / Crop to contiguous objects Say you have a background removed product photo such as this one. The object contains gradients and shadows etc, so it's not a solid rigid object. How do you convert it to just its masked area for connected component analysis? 来源: https://stackoverflow.com/questions/62100307/imagemagick-general-way-to-convert-background-removed-product-photo-into-masked

ImageMagick General way to convert background-removed product photo into masked area for Connected Component Analysis shape

倾然丶 夕夏残阳落幕 提交于 2020-06-01 05:09:24
问题 Trying to figure out the first step in ImageMagick - Trim / Crop to contiguous objects Say you have a background removed product photo such as this one. The object contains gradients and shadows etc, so it's not a solid rigid object. How do you convert it to just its masked area for connected component analysis? 来源: https://stackoverflow.com/questions/62100307/imagemagick-general-way-to-convert-background-removed-product-photo-into-masked

How do I use the input filename in ImageMagick?

a 夏天 提交于 2020-05-31 10:17:40
问题 According to the ImageMagick documentation, I would expect this: convert fountain-pen1.jpg fountain-pen2.jpg handwriting.jpg -resize 400x400\> -set filename:f '%t_smol.%e' '%[filename:f]' to result in fountain-pen1_smol.jpg fountain-pen2_smol.jpg handwriting_smol.jpg . Instead, it only creates fountain-pen1_smol.jpg . What am I doing wrong here? I've also tried with just *.jpg which results in the same output. convert -version Version: ImageMagick 6.9.7-4 Q16 arm 20170114 http://www

How do I use the input filename in ImageMagick?

给你一囗甜甜゛ 提交于 2020-05-31 10:17:20
问题 According to the ImageMagick documentation, I would expect this: convert fountain-pen1.jpg fountain-pen2.jpg handwriting.jpg -resize 400x400\> -set filename:f '%t_smol.%e' '%[filename:f]' to result in fountain-pen1_smol.jpg fountain-pen2_smol.jpg handwriting_smol.jpg . Instead, it only creates fountain-pen1_smol.jpg . What am I doing wrong here? I've also tried with just *.jpg which results in the same output. convert -version Version: ImageMagick 6.9.7-4 Q16 arm 20170114 http://www

Crop and resize image around a custom focus point

北城余情 提交于 2020-05-30 08:12:43
问题 The story An overview of what I want to accomplish: I have photos that need to be cropped and resized, once for a thumbnail view (around 295x195), and once for a "header-image" style view (around 1400x560). The original photos vary in size, the biggest are around 2440x1600. This would not be a problem to solve. However, the image should not be cropped with a "North" or "Center" gravity but should have a defined center position from where the image should be cropped. For this, an image has x

Convert from CMYK to RGB

梦想与她 提交于 2020-05-27 04:09:23
问题 I'm having trouble converting a single page pdf (CMYK) to a jpg (RGB). When I use the code below, the colors in the jpg image are garish. I've tried reading through the Wand docs, but haven't found anything to simply replicate the original image. The official ImageMagick docs themselves are still rather opaque to me. For my situation, it is necessary to do this within a python script. Below is the relevant code snippet. with Image(filename = HOME + outFileName + ".pdf", resolution = 90) as

Convert from CMYK to RGB

﹥>﹥吖頭↗ 提交于 2020-05-27 04:06:49
问题 I'm having trouble converting a single page pdf (CMYK) to a jpg (RGB). When I use the code below, the colors in the jpg image are garish. I've tried reading through the Wand docs, but haven't found anything to simply replicate the original image. The official ImageMagick docs themselves are still rather opaque to me. For my situation, it is necessary to do this within a python script. Below is the relevant code snippet. with Image(filename = HOME + outFileName + ".pdf", resolution = 90) as

Imagemagick convert command: set delay time for the last frame

瘦欲@ 提交于 2020-05-25 06:35:44
问题 I have some .png files named '_tmp*.png' and I want to convert them into a gif file by the convert command with imagemagick. So i could use convert -delay 20 _tmp*.png result.gif However I want the last frame to hold for a while on screen so that one can see the ending of the animation more clearly. Say, I want the last frame to last for 3 seconds while keeping the delay time for the other frames not changed. I studied the document for the convert command but it seems it does not have such a