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?
You simply don’t save it as progressive. Savy?:pirate:
but i already have a lot of images saved progressive and it would be a lot of work to resave it…
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.
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?
Is it possible to load it into flash it they are saved progressive?
No :).
noway?
NO.
see for yourself 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:
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
idea!
is there any way how to check (AS or php function or something) if is the jpg saved progessive?
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.
i would ignore those pictures that are saved progressive. Not all of them are saved progressive…
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…
then batch. thanx for advice
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);
?>