ImageMagick

how to convert 16-bit RGB Frame Buffer to a viewable format?

折月煮酒 提交于 2019-12-23 10:58:10
问题 I'm working with someone else's code on a device which can put an image to /dev/fb/0 and show up on video out or send it over the network to a client application. I don't have access to the old source for the client app, but I know the following about the data: 720x480 16-bit RGB (I'm no sure if it's 5,5,5 or 5,6,5) RAW (no headers whatsoever) cat -able to /dev/fb/0 675kb How can I give this a header or convert it to JPEG, BMP, or a RAW type that I could then view in a desktop application?

Dynamic image creation/Apache headers using Imagick

有些话、适合烂在心里 提交于 2019-12-23 09:26:38
问题 While transferring an existing, stable, website to a new server I've run into an intermittent problem with a bit of code that creates images dynamically using Imagick. The code parses a GET query (eg example.com/image.php?ipid=750123&r=0&w=750&h=1000) and then scales and rotates an image stored on the server and serves it to the client. ipid = id for an image stored on server r = degrees of rotation w = width to display h = height to display. The code has probably been used for at least 5

Where can I get version 16.0.0 of libfreetype.6.dylib for ImageMagick on MAMP

眉间皱痕 提交于 2019-12-23 08:53:53
问题 When running imagemagick under MAMP I get the error message: command output :"dyld: Library not loaded: /opt/local/lib/libfreetype.6.dylib Referenced from: /Applications/MAMP/bin/ImageMagick/ImageMagick-6.7.9/bin/convert Reason: Incompatible library version: convert requires version 16.0.0 or later, but libfreetype.6.dylib provides version 15.0.0" I have searched everywhere I can think of but can't find a solution to this. One posting I saw suggested commenting out the DYLD_LIBRARY_PATH in

SVG Converting using ImageMagick doesn't apply a translation correctly

本秂侑毒 提交于 2019-12-23 08:35:07
问题 I am on a Mac using Mac OS X 10.5, and I am trying to use ImageMagick to convert an SVG file to a PNG. The problem is when I use it the rotated image doesn't show up in the correct position. If I use Batik to convert the file, it works properly. After doing some research I found a thread that talked about trying to upgrade the SVG library. Currently, I am using ImageMagick 6.6.5 and the SVG library is 2.7.7 according to "identify -list format". The thread I found recommended using librsvg 2

SVG Converting using ImageMagick doesn't apply a translation correctly

試著忘記壹切 提交于 2019-12-23 08:34:02
问题 I am on a Mac using Mac OS X 10.5, and I am trying to use ImageMagick to convert an SVG file to a PNG. The problem is when I use it the rotated image doesn't show up in the correct position. If I use Batik to convert the file, it works properly. After doing some research I found a thread that talked about trying to upgrade the SVG library. Currently, I am using ImageMagick 6.6.5 and the SVG library is 2.7.7 according to "identify -list format". The thread I found recommended using librsvg 2

ImageMagick: convert keeps changing the colorspace to Gray. How to preserve sRGB colorspace?

二次信任 提交于 2019-12-23 07:27:51
问题 I have a batch script that converts my PNG-24 (with Transparency) images to 50% and 25% size (for mobile development). Usually these images have colors in them but now I am trying to convert an image that has no colors and ImageMagick keeps changing the colorspace profile to "Gray", which messes up my image in the 3d engine I'm using (Unity). I have tried forcing it to use type TrueColor, colorspace sRGB, and the sRGB.icc profile (the one included with OSX) but it doesn't seem to care. It

spawn ENOENT error

[亡魂溺海] 提交于 2019-12-23 07:27:14
问题 I'm trying to upload stuff to amazon s3 with the imager module. I keep getting the error message that says, events.js:72 throw er; // Unhandled 'error' event ^ Error: spawn ENOENT at errnoException (child_process.js:980:11) at Process.ChildProcess._handle.onexit (child_process.js:771:34) I've already installed imagemagick on my computer, but it keeps saying it's unlinked, could this be the problem? I also tried linking using brew link imagemagick, but it's unable to link for some reason. I'm

Cloud Function: Crop image > Resize to multiple sizes

冷暖自知 提交于 2019-12-23 05:29:27
问题 I've started using Cloud Functions for Firebase to crop and resize multiple sizes when an image gets uploaded to my Firebase storage. I used the Firebase example code to get me started. Using the ImageMagick commands. However, I'm not getting crop to work. It's my goal to get functionality, the same way Wordpress does. Upload image x. Make a fixed ratio crop. And resize to 3 sizes. The code I have now resizes to a medium and large image and uploads them into my storage. Anyone have an

Find Tables in Image using C#

99封情书 提交于 2019-12-23 05:22:47
问题 I am trying to write a function that will take an image and return me a list of images with only tables using EMGU.CV or Magick.Net or AForge.Net for example for the below image the function should return 2 images with the two tables in the image. private static List<Image> FindTables(Image img) { var masterImage = (Bitmap)img; var image = new Image<Gray, byte>(masterImage); var copyImg = new Image<Bgr, byte>(masterImage); List<Image> tables = new List<Images> //Find all tables and add to

Find Tables in Image using C#

爷,独闯天下 提交于 2019-12-23 05:22:13
问题 I am trying to write a function that will take an image and return me a list of images with only tables using EMGU.CV or Magick.Net or AForge.Net for example for the below image the function should return 2 images with the two tables in the image. private static List<Image> FindTables(Image img) { var masterImage = (Bitmap)img; var image = new Image<Gray, byte>(masterImage); var copyImg = new Image<Bgr, byte>(masterImage); List<Image> tables = new List<Images> //Find all tables and add to