ImageMagick

Could not load file or assembly 'Magick.NET-x86.DLL' or one of its dependencies

时光毁灭记忆、已成空白 提交于 2019-12-18 19:40:31
问题 I have used Magick.NET which is a .NET wrapper for ImageMagick, and it throws the above error on a client machine. It works fine on my machine though. I have not installed ImageMagick so I simply can't understand what I need to do on a client machine. I have VS 2012 installed. Also, Magick.NET includes ImageMagick within it, I think it uses C++/CLI and exposes a .NET interface to the native ImageMagick, all within a single DLL. So what DLL does it need? (I just came across this error so

Could not load file or assembly 'Magick.NET-x86.DLL' or one of its dependencies

不打扰是莪最后的温柔 提交于 2019-12-18 19:40:12
问题 I have used Magick.NET which is a .NET wrapper for ImageMagick, and it throws the above error on a client machine. It works fine on my machine though. I have not installed ImageMagick so I simply can't understand what I need to do on a client machine. I have VS 2012 installed. Also, Magick.NET includes ImageMagick within it, I think it uses C++/CLI and exposes a .NET interface to the native ImageMagick, all within a single DLL. So what DLL does it need? (I just came across this error so

Creating a 3D effect from a 2D image

≯℡__Kan透↙ 提交于 2019-12-18 18:46:10
问题 I have a random 2D image. I would like to be able to present the image in 3D. This doesn't have to be very detailed, even if the image were arbitrarily broken into layers like a pop-up cutout from a children's book. The goal would be that a given image would look normal when directly viewed but that if a viewer were to move/tilt left, right, up, down there would be a 3d effect. This is similar but not exactly the same as this question here: How to create 3D streoscopic images using MATLAB

Splitting image with imagemagick

旧巷老猫 提交于 2019-12-18 18:05:44
问题 I have a large image made up of lots of smaller images (not-touching) on a transparent background. Like a spritesheet, but the sprites aren't all the same size, nor are they laid out on a grid. Can I use ImageMagick to split the image into smaller images? So, for example, this: (where # = colored pixel) # ## # # # # ### Becomes these # # ## # # # ### 回答1: You can do this in one single command and do it very efficiently. For example, this command: time convert \ very-very-large.png \ -quality

Getting pixel color with Magick++?

只谈情不闲聊 提交于 2019-12-18 16:30:37
问题 I've already asked this question, but that was about FreeImage . Now I'm trying to do the same thing with ImageMagick (to be more correct, with Magick++ ). All I need is to get the RGB value of pixels in an image with the ability to print it out onto the screen. I asked this in the ImageMagick forum, but it seems there is nobody there. :-( Can anybody help, please? 回答1: Version 6 API Given an " Image " object, you have to request a " pixel cache ", then work with it. Documentation is here and

Can you force ImageMagick to use PNG-8 alpha transparency?

喜夏-厌秋 提交于 2019-12-18 15:03:25
问题 When I try to run a bunch of PNG-8 images with alpha transparency through Imagemagick, it converts them to PNG-32, increasing the file size a lot. Is it possible to force Imagemagick to keep my image type as 8-bit PNG? 回答1: You can do it like this: convert test.png PNG8:test2.png I've had varying luck with IM and PNG8, but this is the correct way to do it. 回答2: I seem to get the best result using the following convert src.png -colors 256 PNG8:dest.png 来源: https://stackoverflow.com/questions

Dump last frame of video file using ffmpeg/mencoder/transcode et. al

筅森魡賤 提交于 2019-12-18 14:18:15
问题 I'd like to grab the last frame in a video ( .mpg , .avi , whatever) and dump it into an image file ( .jpg , .png , whatever). Toolchain is a modern Linux command-line , so things like mencoder , transcode , ffmpeg &c. Cheers, Bob. 回答1: This isn't a complete solution, but it'll point you along the right path. Use ffprobe -show_streams IN.AVI to get the number of frames in the video input. Then ffmpeg -i IN.AVI -vf "select='eq(n,LAST_FRAME_INDEX)'" -vframes 1 LAST_FRAME.PNG where LAST_FRAME

Error “Invalid Parameter” fom ImageMagick convert on Windows

谁都会走 提交于 2019-12-18 14:15:12
问题 I am trying to convert a PDF document into a PNG file using ImageMagick command line tools from a ASP.NET website. I create a new shell process and ahve it execute the following command: convert -density 96x96 "[FileNameAndPath].pdf" "[FileNameAndPath].png" This runs well when testing the website on my local machine with the ASP.NET Develeopment Server of VS and the command also works well when manually entered into the shell. When running from the programatically created shell in ASP.NET

Rotate and crop

狂风中的少年 提交于 2019-12-18 13:38:09
问题 I'm rotating and cropping a image with PHP, but I get the black border showing, I know you can change the background color, but I want to rotate and crop the image to fill the whole image. Basically something similar to background-size: cover; (left) in CSS versus background-size: contain; (right). See the image below, at right is what I got now, left is what I want to achieve. The number of degrees to rotate is dynamic and the image to be produced and the source-image are both square

image collage in PHP

喜夏-厌秋 提交于 2019-12-18 13:19:23
问题 I'm looking for a finshed solution or possibly some math/algorithms for creating a big image collage out of smaller product pictures? I know how to do it in a square fashion, from same sized pictures with gd/imagemagick but I'd like to have some variation built in. For example, some of the pictures might be slightly taller, and if all are the same size and square - i might want 1 of them take up more space, just to mix up the design. keeping it interesting. the more i think about this the