{
  "attachments": [],
  "comments_archived": true,
  "date": "2003-09-19T18:28:23.000Z",
  "layout": "post",
  "title": "Flash MX Hates Progressive JPEGs",
  "wordpress_id": 480,
  "wordpress_slug": "flash-hates-progressive-jpeg",
  "wordpress_url": "http://www.decafbad.com/blog/?p=480",
  "year": "2003",
  "month": "09",
  "day": "19",
  "isDir": false,
  "slug": "flash-hates-progressive-jpeg",
  "type": "entry",
  "postName": "2003-09-19-flash-hates-progressive-jpeg",
  "html": "<p>\nOkay, I may be the last person fiddling with Flash to\ndiscover this, but here's what I've learned today:\n</p>\n<p>\n<a href=\"http://www.macromedia.com/support/flash/ts/documents/cant_load_jpg.htm\"><b>Flash MX hates progressive JPEGs.</b></a>\n</p>\n<p>\nFrom the above: \"<i>The Macromedia Flash Player does not have a\ndecompressor for progressive JPEG images, therefore files of this type\ncannot be loaded dynamically and will not display when using the\nloadMovie action.</i>\"\n</p>\n<p>\nThis would have been nice to know, hours ago.  Or maybe fixed in\nthe past year or so since the above linked tech note.  See, although\nI'm a Jack of a lot of Trades, I don't really pay attention much\nto things like JPEGs and their progressive natures.  It wasn't\nuntil I finally started randomly clicking buttons on and off in\nMacromedia Fireworks while exporting a test JPEG that I finally\nnarrowed down the problem.\n</p>\n<p>\nThis was after a day worth of examining ActionScript, XML data,\nHTTP headers, and a mess of other random dead ends.  And a lot of\nlast-ditch random and exhaustive twiddling of checkboxes and\noptions.\n</p>\n<p>\n<b>Then</b>, once I had the words I\nwouldn't have had unless I already knew what my problem was, a Google search for\n\"<a href=\"http://www.google.com/search?q=flash+progressive+jpeg&amp;ie=UTF-8&amp;oe=UTF-8\">flash progressive jpeg</a>\"\ngot me all kinds of info.\n</p>\n<p>\nProblem is, the JPEGs supplied to the particular Flash app on which\nI'm hacking come from a random assortment of people working through\na content management system on the backend.  They upload them\nwith a form in their browser, and this Flash app gets a URL to the\nimage via an XML doc it loads.  Me, I'm probably in bed when this\nhappens.  I'd love to have tested every one... er, rather, no I\nwouldn't.\n</p>\n<p>\nSo... Now I just have to figure out how to get all these people\nto start making sure that their JPEGs aren't progressive.  Hmph.\n</p>\n<p>\nI can only hope that this message gets indexed and maybe provides\nmore triangulation for some other poor sucker in the future.\n</p>\n\n\n<!--more-->\n\n\n<p>shortname=flash_hates_progressive_jpeg</p>\n<div id=\"comments\" class=\"comments archived-comments\"><h3>Archived Comments</h3>\n<ul class=\"comments\">\n<li class=\"comment\" id=\"comment-221090485\">\n<div class=\"meta\">\n<div class=\"author\">\n<a class=\"avatar image\" rel=\"nofollow\" href=\"http://aaronland.net\"><img src=\"http://www.gravatar.com/avatar.php?gravatar_id=9b704dff33489e0ba50f7a6364a8bf5a&amp;size=32&amp;default=http://mediacdn.disqus.com/1320279820/images/noavatar32.png\" width=\"\" height=\"\"></a>\n<a class=\"avatar name\" rel=\"nofollow\" href=\"http://aaronland.net\">Aaron of Montreal</a>\n</div>\n\n\n<p><a href=\"#comment-221090485\" class=\"permalink\"><time datetime=\"2003-09-19T15:01:02\">2003-09-19T15:01:02</time></a></p>\n</div>\n\n\n<div class=\"content\">FYI : \nhttp://studio.imagemagick.org/pipermail/magick-users/2003-May/008922.html</div>\n\n\n</li>\n<li class=\"comment\" id=\"comment-221090486\">\n<div class=\"meta\">\n<div class=\"author\">\n<a class=\"avatar image\" rel=\"nofollow\" href=\"http://www.m14m.net/bloglet.php\"><img src=\"http://www.gravatar.com/avatar.php?gravatar_id=4a798b64b3d34d2377959729761f68b2&amp;size=32&amp;default=http://mediacdn.disqus.com/1320279820/images/noavatar32.png\" width=\"\" height=\"\"></a>\n<a class=\"avatar name\" rel=\"nofollow\" href=\"http://www.m14m.net/bloglet.php\">Moss Collum</a>\n</div>\n\n\n<p><a href=\"#comment-221090486\" class=\"permalink\"><time datetime=\"2003-09-19T16:02:38\">2003-09-19T16:02:38</time></a></p>\n</div>\n\n\n<div class=\"content\">Wow... and here's me just embarking on a project in Flash that's going to have to deal with JPEGs uploaded by random people on the web. Thank you, I think you've just saved me a lot of trouble.</div>\n\n\n</li>\n<li class=\"comment\" id=\"comment-221090488\">\n<div class=\"meta\">\n<div class=\"author\">\n<a class=\"avatar image\" rel=\"nofollow\" href=\"http://dougal.gunters.org/\"><img src=\"http://www.gravatar.com/avatar.php?gravatar_id=9f2c8c704e6bf55bc51399157c5283a9&amp;size=32&amp;default=http://mediacdn.disqus.com/1320279820/images/noavatar32.png\" width=\"\" height=\"\"></a>\n<a class=\"avatar name\" rel=\"nofollow\" href=\"http://dougal.gunters.org/\">Dougal Campbell</a>\n</div>\n\n\n<p><a href=\"#comment-221090488\" class=\"permalink\"><time datetime=\"2003-09-19T16:43:43\">2003-09-19T16:43:43</time></a></p>\n</div>\n\n\n<div class=\"content\">And of course, there's always the GD library, too, which may or may not be easier to install than ImageMagick. Many PHP environments already have it, in case that helps. Yaarrr!\nJust gdImageCreateFromJpeg, gdImageInterlace, then gdImageJpeg, and you can get a non-interlaced version of your image.</div>\n\n\n</li>\n<li class=\"comment\" id=\"comment-221090489\">\n<div class=\"meta\">\n<div class=\"author\">\n<a class=\"avatar image\" rel=\"nofollow\" href=\"http://admin.support.journurl.com/\"><img src=\"http://www.gravatar.com/avatar.php?gravatar_id=4df556273eae91df768e9af6e4efdfcc&amp;size=32&amp;default=http://mediacdn.disqus.com/1320279820/images/noavatar32.png\" width=\"\" height=\"\"></a>\n<a class=\"avatar name\" rel=\"nofollow\" href=\"http://admin.support.journurl.com/\">Roger Benningfield</a>\n</div>\n\n\n<p><a href=\"#comment-221090489\" class=\"permalink\"><time datetime=\"2003-09-20T13:21:31\">2003-09-20T13:21:31</time></a></p>\n</div>\n\n\n<div class=\"content\">Just another option I stumbled across:\nhttp://www.img2swf.com/about.htm</div>\n\n\n</li>\n</ul>\n\n\n</div>\n\n\n",
  "body": "<p>\r\nOkay, I may be the last person fiddling with Flash to\r\ndiscover this, but here's what I've learned today:\r\n</p>\r\n<p>\r\n<a href=\"http://www.macromedia.com/support/flash/ts/documents/cant_load_jpg.htm\"><b>Flash MX hates progressive JPEGs.</b></a>\r\n</p>\r\n<p>\r\nFrom the above: \"<i>The Macromedia Flash Player does not have a\r\ndecompressor for progressive JPEG images, therefore files of this type\r\ncannot be loaded dynamically and will not display when using the\r\nloadMovie action.</i>\"\r\n</p>\r\n<p>\r\nThis would have been nice to know, hours ago.  Or maybe fixed in\r\nthe past year or so since the above linked tech note.  See, although\r\nI'm a Jack of a lot of Trades, I don't really pay attention much\r\nto things like JPEGs and their progressive natures.  It wasn't\r\nuntil I finally started randomly clicking buttons on and off in\r\nMacromedia Fireworks while exporting a test JPEG that I finally\r\nnarrowed down the problem.\r\n</p>\r\n<p>\r\nThis was after a day worth of examining ActionScript, XML data,\r\nHTTP headers, and a mess of other random dead ends.  And a lot of\r\nlast-ditch random and exhaustive twiddling of checkboxes and\r\noptions.\r\n</p>\r\n<p>\r\n<b>Then</b>, once I had the words I\r\nwouldn't have had unless I already knew what my problem was, a Google search for\r\n\"<a href=\"http://www.google.com/search?q=flash+progressive+jpeg&ie=UTF-8&oe=UTF-8\">flash progressive jpeg</a>\"\r\ngot me all kinds of info.\r\n</p>\r\n<p>\r\nProblem is, the JPEGs supplied to the particular Flash app on which\r\nI'm hacking come from a random assortment of people working through\r\na content management system on the backend.  They upload them\r\nwith a form in their browser, and this Flash app gets a URL to the\r\nimage via an XML doc it loads.  Me, I'm probably in bed when this\r\nhappens.  I'd love to have tested every one... er, rather, no I\r\nwouldn't.\r\n</p>\r\n<p>\r\nSo... Now I just have to figure out how to get all these people\r\nto start making sure that their JPEGs aren't progressive.  Hmph.\r\n</p>\r\n<p>\r\nI can only hope that this message gets indexed and maybe provides\r\nmore triangulation for some other poor sucker in the future.\r\n</p>\r\n<!--more-->\r\nshortname=flash_hates_progressive_jpeg\r\n\r\n<div id=\"comments\" class=\"comments archived-comments\">\r\n            <h3>Archived Comments</h3>\r\n            \r\n        <ul class=\"comments\">\r\n            \r\n        <li class=\"comment\" id=\"comment-221090485\">\r\n            <div class=\"meta\">\r\n                <div class=\"author\">\r\n                    <a class=\"avatar image\" rel=\"nofollow\" \r\n                       href=\"http://aaronland.net\"><img src=\"http://www.gravatar.com/avatar.php?gravatar_id=9b704dff33489e0ba50f7a6364a8bf5a&amp;size=32&amp;default=http://mediacdn.disqus.com/1320279820/images/noavatar32.png\"/></a>\r\n                    <a class=\"avatar name\" rel=\"nofollow\" \r\n                       href=\"http://aaronland.net\">Aaron of Montreal</a>\r\n                </div>\r\n                <a href=\"#comment-221090485\" class=\"permalink\"><time datetime=\"2003-09-19T15:01:02\">2003-09-19T15:01:02</time></a>\r\n            </div>\r\n            <div class=\"content\">FYI : \r\n\r\nhttp://studio.imagemagick.org/pipermail/magick-users/2003-May/008922.html</div>\r\n            \r\n        </li>\r\n    \r\n        <li class=\"comment\" id=\"comment-221090486\">\r\n            <div class=\"meta\">\r\n                <div class=\"author\">\r\n                    <a class=\"avatar image\" rel=\"nofollow\" \r\n                       href=\"http://www.m14m.net/bloglet.php\"><img src=\"http://www.gravatar.com/avatar.php?gravatar_id=4a798b64b3d34d2377959729761f68b2&amp;size=32&amp;default=http://mediacdn.disqus.com/1320279820/images/noavatar32.png\"/></a>\r\n                    <a class=\"avatar name\" rel=\"nofollow\" \r\n                       href=\"http://www.m14m.net/bloglet.php\">Moss Collum</a>\r\n                </div>\r\n                <a href=\"#comment-221090486\" class=\"permalink\"><time datetime=\"2003-09-19T16:02:38\">2003-09-19T16:02:38</time></a>\r\n            </div>\r\n            <div class=\"content\">Wow... and here's me just embarking on a project in Flash that's going to have to deal with JPEGs uploaded by random people on the web. Thank you, I think you've just saved me a lot of trouble.</div>\r\n            \r\n        </li>\r\n    \r\n        <li class=\"comment\" id=\"comment-221090488\">\r\n            <div class=\"meta\">\r\n                <div class=\"author\">\r\n                    <a class=\"avatar image\" rel=\"nofollow\" \r\n                       href=\"http://dougal.gunters.org/\"><img src=\"http://www.gravatar.com/avatar.php?gravatar_id=9f2c8c704e6bf55bc51399157c5283a9&amp;size=32&amp;default=http://mediacdn.disqus.com/1320279820/images/noavatar32.png\"/></a>\r\n                    <a class=\"avatar name\" rel=\"nofollow\" \r\n                       href=\"http://dougal.gunters.org/\">Dougal Campbell</a>\r\n                </div>\r\n                <a href=\"#comment-221090488\" class=\"permalink\"><time datetime=\"2003-09-19T16:43:43\">2003-09-19T16:43:43</time></a>\r\n            </div>\r\n            <div class=\"content\">And of course, there's always the GD library, too, which may or may not be easier to install than ImageMagick. Many PHP environments already have it, in case that helps. Yaarrr!\r\n\r\nJust gdImageCreateFromJpeg, gdImageInterlace, then gdImageJpeg, and you can get a non-interlaced version of your image.</div>\r\n            \r\n        </li>\r\n    \r\n        <li class=\"comment\" id=\"comment-221090489\">\r\n            <div class=\"meta\">\r\n                <div class=\"author\">\r\n                    <a class=\"avatar image\" rel=\"nofollow\" \r\n                       href=\"http://admin.support.journurl.com/\"><img src=\"http://www.gravatar.com/avatar.php?gravatar_id=4df556273eae91df768e9af6e4efdfcc&amp;size=32&amp;default=http://mediacdn.disqus.com/1320279820/images/noavatar32.png\"/></a>\r\n                    <a class=\"avatar name\" rel=\"nofollow\" \r\n                       href=\"http://admin.support.journurl.com/\">Roger Benningfield</a>\r\n                </div>\r\n                <a href=\"#comment-221090489\" class=\"permalink\"><time datetime=\"2003-09-20T13:21:31\">2003-09-20T13:21:31</time></a>\r\n            </div>\r\n            <div class=\"content\">Just another option I stumbled across:\r\n\r\nhttp://www.img2swf.com/about.htm</div>\r\n            \r\n        </li>\r\n    \r\n        </ul>\r\n    \r\n        </div>\r\n    ",
  "parentPath": "./content/posts/archives/2003",
  "path": "2003/09/19/flash-hates-progressive-jpeg",
  "summary": "Okay, I may be the last person fiddling with Flash to\ndiscover this, but here's what I've learned today:\n\n\nFlash MX hates progressive JPEGs.\n\n\nFrom the above: \"The Macromedia Flash Player does not have a\ndecompressor for progressive JPEG images, therefore files of this type\ncannot be loaded dynamically and will not display when using the\nloadMovie action.\"\n\n\nThis would have been nice to know, hours ago.  Or maybe fixed in\nthe past year or so since the above linked tech note.  See, although\nI'm a Jack of a lot of Trades, I don't really pay attention much\nto things like JPEGs and their progressive natures.  It wasn't\nuntil I finally started randomly clicking buttons on and off in\nMacromedia Fireworks while exporting a test JPEG that I finally\nnarrowed down the problem.\n\n\nThis was after a day worth of examining ActionScript, XML data,\nHTTP headers, and a mess of other random dead ends.  And a lot of\nlast-ditch random and exhaustive twiddling of checkboxes and\noptions.\n\n\nThen, once I had the words I\nwouldn't have had unless I already knew what my problem was, a Google search for\n\"flash progressive jpeg\"\ngot me all kinds of info.\n\n\nProblem is, the JPEGs supplied to the particular Flash app on which\nI'm hacking come from a random assortment of people working through\na content management system on the backend.  They upload them\nwith a form in their browser, and this Flash app gets a URL to the\nimage via an XML doc it loads.  Me, I'm probably in bed when this\nhappens.  I'd love to have tested every one... er, rather, no I\nwouldn't.\n\n\nSo... Now I just have to figure out how to get all these people\nto start making sure that their JPEGs aren't progressive.  Hmph.\n\n\nI can only hope that this message gets indexed and maybe provides\nmore triangulation for some other poor sucker in the future.",
  "needsBuild": true,
  "prevPostPath": "2003/09/12/dont-copy-software",
  "prevPostTitle": "Don't copy that floppy, or cracked software strikes back",
  "nextPostPath": "2003/09/21/rss-feedback",
  "nextPostTitle": "Feedback loops and syndication"
}