Tag: images
-
Web API 2 – ExceptionMessage=No MediaTypeFormatter is available to read an object of type ‘HttpPostedFileBase’ from content with media type ‘multipart/form-data’.
Hi everyone, I ran into the following error while trying to get image uploads working with Web API 2: ExceptionMessage=No MediaTypeFormatter is available to read an object of type ‘HttpPostedFileBase’ from content with media type ‘multipart/form-data’. I had been trying to copy the following from an mvc controller in another project: public IHttpActionResult Upload(HttpPostedFileBase file,…
-
ImageMagick Commands
Hey guys, Just a couple of useful imagemagick commands for preparing images: Convert all images in a directory to jpg magick mogrify -format jpg * Resize all images in a directory magick mogrify -resize 360×360 *
-
Not Recognised by the ‘identify’ command – Paperclip
Just a quick post on another problem I ran into while setting up PaperClip. When attempting to submit a form WITHOUT an image I received the following error message: Assets asset /tmp/stream20120218-22611-dgnkr-0.exe is not recognized by the ‘identify’ command. Apparently the most common cause of this issue is one of two things: #1: You don’t…
-
PaperClip Issues – Ruby on Rails
I finally decided to replace all my existing code to handle images with Paperclip. I was following the screencast by Emerson Lackey, #134 Paperclip, however I ran into a couple of issues. Thankfully they were all very easily fixed, and probably wouldn’t have occurred at all if I’d simply watched the whole screencast instead of…