flash image rescaling
- Started
- Last post
- 18 Responses
- ********
Question: how do you get rid of that jagged image look when you rescale them?
http://www.apc.fr/madras/index.p…
vs
http://www.prada.com/Prada.com has does not seem to have that jagged edge which is typical of image resizing in flash
- ukit0
Good question, I eagerly await the response
- ********0
i noticed that in prada, the images starts to get jagged when the site is shrunken down to a really small size...
- PonyBoy0
dynamic or embedded images?
- acescence0
in AS3:
yourBitmap.smoothing = true;
- Naygon0
- shit so is the Prada
http://www.prada.com…Naygon - eh how does this prada jpg work that way?********
- shit so is the Prada
- PonyBoy0
if you're outputting to Flash 8 and loading images dynamically... you have to jump through a hoop or two using bitmapData... else your dynamically loaded imagery will be jaggy and doody-ish. :)
- richardkark0
if you're using actionscript 2 and no dynamicly loaded images, go to the library, select the image properties for the image, then check the box that says "Allow Smoothing"
- falcadia0
As2.. something like this... It's been a while
import flash.display.*;
var bitmap:BitmapData = new BitmapData(mc._width, mc._height, true);
- moamoa0
http://moamoa.org/m3/ = new scale
http://moamoa.org = old scaledon´t laugh... the site isn´t ready.. its just the testversion...
but we found a very good way to scale the pics.. better then on my current site.. and much faster
- moamoa0
btw: the Prada site looks horrible... they hadn´t a site for years... and now this... pfui
- Amen0
create_image();
exit();function create_image()
{
//Let's generate a totally random string using md5
$md5 = md5(rand(0,999));
//We don't need a 32 character long string so we trim it down to 5
$pass = substr($md5, 10, 5);//Set the image width and height
$width = 100;
$height = 20;//Create the image resource
$image = ImageCreate($width, $height);//We are making three colors, white, black and gray
$white = ImageColorAllocate($image, 255, 255, 255);
$black = ImageColorAllocate($image, 0, 0, 0);
$grey = ImageColorAllocate($image, 204, 204, 204);//Make the background black
ImageFill($image, 0, 0, $black);//Add randomly generated string in white to the image
ImageString($image, 3, 30, 3, $pass, $white);//Throw in some lines to make it a little bit harder for any bots to break
ImageRectangle($image,0,0,$width...
imageline($image, 0, $height/2, $width, $height/2, $grey);
imageline($image, $width/2, 0, $width/2, $height, $grey);//Tell the browser what kind of file is come in
header("Content-Type: image/jpeg");//Output the newly created image in jpeg format
ImageJpeg($image);//Free up resources
ImageDestroy($image);
}- J/KAmen
- doesnt look like actionscript to me...ArmandoEstrada
- monNom0
little known tip:
param name=quality, value=bestanimation will run like shit, but AA is excellent.
I think you can probably do it dynamically with fscommand or some such.
- ********0
moamoa could you tell me more about the FLEX thingy? how you did it?
- hiimerik0
Yes moamoa, could you point us to any tutorials you might have used to achieve that effect?
- moamoa0
ahhhmm.. I have no idea... I am not a coder...
just know that the coder did it in flex... so I can put my work by drag&drop from gallery to a menu... easy.He will come ths afternoon and will ask him...
- flex and flash = same language and virtual machine, no difference what you build it withacescence
- ********0
not sure if this helps but this dude went thru same thing
- PSYKHO0
I think if you use high res images for your gallery and try something like this go with it?
http://www.blog.noponies.com/arc…
