# Problem with loading JPGs

**URL:** <https://forum.kirupa.com/t/problem-with-loading-jpgs/62187>\
**Category:** Uncategorized\
**Created:** [August 25, 2004, 5:32pm UTC](https://forum.kirupa.com/t/problem-with-loading-jpgs/62187 "2004-08-25T17:32:00Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![rewko](https://avatars.discourse-cdn.com/v4/letter/r/b38774/32.png) [@rewko](https://forum.kirupa.com/u/rewko)\
**Post date:** [August 25, 2004, 5:32pm UTC](https://forum.kirupa.com/t/problem-with-loading-jpgs/62187/1 "2004-08-25T17:32:00Z")

</div>

I use \_root.loadMovie(‘picname.jpg’); to load a picture into flash. But if the picture is saved progressive with PhotoShop CS picutre is not loaded.  
How can I solve this problem?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 25, 2004, 5:36pm UTC](https://forum.kirupa.com/t/problem-with-loading-jpgs/62187/2 "2004-08-25T17:36:21Z")

</div>

You simply don’t save it as progressive. Savy?:pirate:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 25, 2004, 5:46pm UTC](https://forum.kirupa.com/t/problem-with-loading-jpgs/62187/3 "2004-08-25T17:46:22Z")

</div>

but i already have a lot of images saved progressive and it would be a lot of work to resave it…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 25, 2004, 6:50pm UTC](https://forum.kirupa.com/t/problem-with-loading-jpgs/62187/4 "2004-08-25T18:50:33Z")

</div>

You can batch open/save things in photoshop CS, I find it very useful for mass conversions and such. Look around in the photoshop help.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 26, 2004, 7:14am UTC](https://forum.kirupa.com/t/problem-with-loading-jpgs/62187/5 "2004-08-26T07:14:25Z")

</div>

that’s ok i know it but my pictures are already away from my HDD on the ftp server and i am not able to work with them much.

Is it possible to load it into flash it they are saved progressive?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 26, 2004, 9:09am UTC](https://forum.kirupa.com/t/problem-with-loading-jpgs/62187/6 "2004-08-26T09:09:34Z")

</div>

> Is it possible to load it into flash it they are saved progressive?

No :).

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 26, 2004, 9:12am UTC](https://forum.kirupa.com/t/problem-with-loading-jpgs/62187/7 "2004-08-26T09:12:51Z")

</div>

noway?

* * *

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 26, 2004, 1:45pm UTC](https://forum.kirupa.com/t/problem-with-loading-jpgs/62187/8 "2004-08-26T13:45:50Z")

</div>

NO.

see for yourself [http://www.macromedia.com/support/flash/ts/documents/cant\_load\_jpg.htm](http://www.macromedia.com/support/flash/ts/documents/cant_load_jpg.htm)

Why don’t you just retrieve the pics off the server, then run them through a batch process like Dunga suggested. You can do that through Photoshop, and or Fireworks. A batch process will simply run any command you tell it to, so you don’t have to do all the work of opening each pic and re-saving.  
This is the best solution to your problem. :thumb:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 26, 2004, 7:37pm UTC](https://forum.kirupa.com/t/problem-with-loading-jpgs/62187/9 "2004-08-26T19:37:06Z")

</div>

there is many pictures and my connection to internet is very weak (slow and expensive) so i wanted to solve it otherway…  
Like i see there is no other way ☹

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 26, 2004, 7:44pm UTC](https://forum.kirupa.com/t/problem-with-loading-jpgs/62187/10 "2004-08-26T19:44:31Z")

</div>

idea!  
is there any way how to check (AS or php function or something) if is the jpg saved progessive?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 26, 2004, 8:37pm UTC](https://forum.kirupa.com/t/problem-with-loading-jpgs/62187/11 "2004-08-26T20:37:27Z")

</div>

what good would that do? you still wouldn’t be able to load it…

just open an FTP connection and start copying the files before you go to bed some night (don’t use WinXP FTP – try smartFTP or WS\_FTP), batch edit them all, then repeat the FTP process (only this time going upstream).

boom. :cop:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 26, 2004, 8:43pm UTC](https://forum.kirupa.com/t/problem-with-loading-jpgs/62187/12 "2004-08-26T20:43:21Z")

</div>

i would ignore those pictures that are saved progressive. Not all of them are saved progressive…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 27, 2004, 12:03am UTC](https://forum.kirupa.com/t/problem-with-loading-jpgs/62187/13 "2004-08-27T00:03:33Z")

</div>

Well there is no way for flash to tell if its progressive, and anyway if there was some way to do that you would be stuck with lots of images just not appearing…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 27, 2004, 5:25pm UTC](https://forum.kirupa.com/t/problem-with-loading-jpgs/62187/14 "2004-08-27T17:25:48Z")

</div>

then batch. thanx for advice

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 30, 2004, 6:30am UTC](https://forum.kirupa.com/t/problem-with-loading-jpgs/62187/15 "2004-08-30T06:30:16Z")

</div>

If you use flash to send the path of the jpg to the php the following file will give flash a non-progressive jpg to work with. The method isn’t perfect because not every server has the proper libraries installed. So on that note I am providing this code as-is, I know it works as I use it myself, however, I will provide no furthur support on the php itself.

\<?php  
$src\_img=imagecreatefromjpeg($pathSentFromFlash);  
$new\_w = imagesx($src\_img);  
$new\_h = imagesy($src\_img);  
$quality = 100;

$dst\_img=ImageCreate($new\_w,$new\_h);  
ImageCopyResized($dst\_img,$src\_img,0,0,0,0,$new\_w,$new\_h,ImageSX($src\_img),Ima geSY($src\_img));  
imageinterlace($dst\_img, FALSE);

header(“Content-type: image/jpeg”);  
Imagejpeg($dst\_img,’’,$quality);  
?\>
