How to proper resize images and videos at runtime without losing quality?

Hi guys. I need a bit of help here.
I've built a flash site in which i want to resize a movie to the stage. I do it by keeping the proportion, thus i only resize the width and then i resize the height acordingly to the new width but keeping the proportion.
The problem is that my film still looks "pixeled".
I found a website on which the stage resizes dinamically with the movie and the background images without either of them losing quality. Till now i knew that resizing images or videos in flash at authoring or runtime produces pixeled results.
This is the website: http://kampanjeweb.apt.no/jotun/romforrom/. Can someone tell me how do they do it without losing quality? just make the browser windowed and resize the margins to see the effect.
Thanks.

Hello, Venian.
About the video, you could try setting the flash.media.Video's smoothing property to TRUE. This should keep a quality, but you can do nothing if the video has a poor quality. You need a great video.
About the images, you you need to redraw the image each time you resize it. To achieve it, use a combination of Bitmap, BitmapData and Matrix classes. Any doubt, just call again. Here is a simple example:
var scale:Number = .5;
var highQualitySourceImage:Bitmap = ...your image...;
var scaleMatrix:Matrix = new Matrix();
     scaleMatrix.scale(scale, scale);
var bitmapData:BitmapData = new BitmapData( scale*highQualitySourceImage.width, scale*highQualitySourceImage.height);
     bitmapData.draw(highQualitySourceImage, scaleMatrix);
var finalBitmap:Bitmap = new Bitmap(bitmapData);
addChild( finalBitmap );
Cheers,
CaioToOn!

Similar Messages

  • How do I import images from my hard drive without losing resolution? My original files after import are significantly smaller. What should I do?

    How do I import images from my hard drive without losing resolution? My original files after import are significantly smaller. What should I do?

    Hi Keith, and all others chiming in, I do have the correct option checked in advanced settings telling iPhoto to copy the images into the library. What is a refernced library? Perhaps this is where I am getting confused. I exported my entire photo library from an old iMac5 to my external hard drive, from there I attempted to import the entire library to my new iMac. Am I overlooking an obvious and easy way to import from the hard drive to the new iMac--I dragged the entire photo pholder from the hard drive to the open window of iPhoto on the new computer. Now, I only get preview file sizes in iPhoto, unless I have my external drive open. Perhaps I need to import the original images from the hard drive in a different way...?! (This is making me feel pretty stupid.)

  • I need help,,upgraded to ipad2, laptop had to be restored b4 I backed up iPad or saved iTunes library. How do I back up and sync my ipad2 without losing content on my iPad.

    I need help,,upgraded to ipad2, my HP laptop had major issues and had to be restored b4 I could back up and save any content on the hard disc. So i havent backed up my iPad2 or saved my iTunes library.
    How do I back up and sync my ipad2 without losing content on my iPad.???
    I need really simple instructions as I've had a bad run with my laptop the last month.
    I have re-installed iTunes,it currently has no content in it
    all my music, photos etc had been saved to a an external Hardrive (phew)so I'm not concerned about losing them during a sync, but how do I sync my Ipad without losing the applications... The last back up saved was in June when I still had an ipad1
    I tried to back it up last night but kept getting the prompts something to the effect of "iPad can only be synced to 1 iTunes library, syncing will erase all content and replace with content on this iTunes library".  
    Help please,, I've already lost endless hours fixing my PC issues,so I'm not game to attempt this issue without guarantee I won't lose everything,need a simple solution that anyone can follow as my brain has information overload!!! Lol
    Thanks

    This should help you out. I copied this from another discussion a while back. Here is the original discussion link.
    https://discussions.apple.com/message/11527071#11527071
    This is what is in the discussion. It really doesn't get any easier than this.
    1) Without connecting your iPad to your laptop, start iTunes. Click on Edit. Click on Preferences. Click on Devices. Check the box next to "Prevent your iPod etc. from automatically syncing." Click OK.
    2) Now connect your iPad to your laptop and start iTunes.
    3) When iTunes starts, right click on your iPad under Devices in the left column. Select Transfer purchases etc.
    4) After it finishes transferring all your apps to your new laptop, right click on your iPad and select Backup your iPad.
    5) After it finishes backing up your iPad, right click on your iPad and select Restore etc.
    6) After it finishes restoring, left click on your iPad , then click on the Apps tab on top, and check the box next to Sync Apps, then click on Apply below.
    If everything on your iPad looks good after the sync, go back and click on Edit / Preferences / Devices and UN-check the box next to Prevent your iPod etc. The only other thing you may want to check is if your contacts, bookmarks, etc. are syncing correctly now. If not, go to the Info tab after connecting and make sure you indicate which features you want to sync with what sources.

  • How do i blend image and video on premier?

    Hello Everyone
    I'm trying to add a video onto an image on Premier. I want the image to be still and the video to play in the background. How do I make an image and video blend together in Premier?
    Any tips/effects to make this look more interesting? for my project I'm trying to add a disturbing footage from the news onto a landscape photograph.
    I'm using pro 5 on an Imac
    Thanks in advance

    Video on track one.  Image on track two.  Use the motion property to locate and size the image.

  • How to export a slideshow in iPhoto 9.5 without losing quality

    Hi
    Would appreciate comments from the forum on how to best export a slideshow in iPhoto 9.5 without losing quality. I tried the highest quality option on the export menu but still noticed a signficant degradation in the quality of the slideshow in iPHoto vs the exported file.
    I read some of the posts on earlier versions of iPhoto were the "Custom Export" could be used but understand this functionality has been removed from the latest version (iPhoto 9.5).
    Any help would be greatly appreciated!

    In iPhoto, when you play a slideshow it's showing you the actual photos.
    After export , you're watching a movie made from these images. The process of exporting to a movie necessarily involves compression. Even HD export is still about 2 MP range. If you're shooting 6, 10, 12 or more MP images there is an inevitable loss of data. The enormous stills from your camera are being squeezed down into HDTV quality. It's even worse if you try export for a DVD. TV avoids this by not shooting such high quality images.
    So, what you can try is use another app and one that has different algorithms for this process. Frankly, it'll be a process of trial and error to find the one that works best for your images.
    Alternatives to iPhoto's slideshow include:
    iMovie is on every Mac sold. It's worth a try, though it only has the same export options as iPhoto now. Older versions had more.
    Others, in order of price:
    PhotoPresenter  $29
    PhotoToMovie  $49.95
    PulpMotion  $129
    FotoMagico $29 (Home version) ($149 Pro version, which includes PhotoPresenter)
    Final Cut Pro X $299
    It's difficult to compare these apps. They have differences in capability - some are driven off templates. some aren't. Some have a wider variety of transitions. Others will have excellent audio controls. It's worth checking them out to see what meets your needs. However, there is no doubt that Final Cut Pro X is the most capable app of them all. You get what you pay for.

  • Resized images and video seam blurred in motion 4...

    Hello,
    I don't know if my problem is a bug or a stupid mistake I did, or something basic I haven't understood about motion, but here it is:
    I had to edit today a project I created in september 2009 with motion 3. (I installed 2 weeks ago motion 4). The project is made of images and text. When I opened the old project the images looked ok but seamed blurred although the render settings are at best quality.
    I then made an experiment and created a new project in Motion 4 and imported one image, and when I put the quality at best, again this image look unfocused. I would probably not have noticed the problem and thought that the problem comes from the image or from the capabilities of motion, if I didn't have that old video done in motion 3 with the exact same images in the exact same size in perfect crisp quality...
    I did a research in forums, but haven't found any one with a similar problem. People usually have pixelated images because they didn't put the best render quality...
    I then tried to test this on a different computer with motion 4: same problem. I tried all the settings I could find in Motion, but still no result. I trash the preferences, I repaired the permission of my mac, I reinstalled motion 4, tried several images format and size but still no result.
    I noticed that the problem occurs when I resize an image or when I resize a video. At 100% I get perfect quality, but when I resize them, they look blurred. Anything that requires a render seam to be a little blurred when the render quality is set to best. It seams like the anti-aliasing is working so well that it blurs everything... If I put the quality at normal settings, the elements that have been resized look sharp but pixelated...
    I haven't tried to test all this again in motion 3 because I don't have access to any computer that still have that version installed. And I haven't phoned applecare yet because they are closed right now in my country, but I will phone them tomorrow morning and let you know if I get any result with them.
    I really hope I simply forgot something obvious, or maybe there is a new or old setting in motion 4 that I don't know about or haven't understood properly...
    please help me
    Louie
    ps: My version of Motion is French, so I might not use the right english words used in the english version of Motion.

    Thanks for responding.
    I'm of course sizing my picture down. The project I was working on yesterday that helped me notice the problem is 300x300 pixels and the images are around 500x1000 pixels, scaled down to around 20%.
    I haven't notice today that the problem occurs in other project as well. Before I was not looking in detail at the quality, and if no one tells you about it, you won't notice it. But right now all my old projects done in Motion 3, once opened in Motion 4 seam to have that blurry effect on any image or video that is scaled down.
    I understand that Motion might maybe not be very good at scale down things, and might do it less perfetly then Photoshop. But what is odd is that all my old video exported when I had Motion 3 have sharp perfect scaled down images comparred to what I get today in Motion 4.
    The blur I'm speaking about is very light. You won't notice it easily unless you have an old version of the same video to compare it with. But in the project I was working yesterday at 300x300 pixel, the difference was really very obvious, because at this size every detail counts.
    My idea to solve my problem temporarly was to change my Motion project settings to triple its original size (from 300x300 to 900x900) and blow up everthing 300%, export the video at 900x900 and then scale it down through Quicktime instead of Motion at 300x300. This worked and my images are as sharp as they should be. This project is short and light, so I didn't mind doing this conversion, but when I will work with projects that need more render time, it's not a productiv way to work!
    I noticed another odd thing about the problem, I hope I will explain this clearly by describing 3 situations:
    1. I create in Motion 4 a new project with any preset.
    2. I import an image or a video
    3. I scale it down, by pulling one corner (=> the image or video becomes blurred)
    4. In the properties inspector I type the word "100" to get it back to 100%
    => the image is still blurred, it is difficult to see, but when I import again the same image and put it next to it you can see a difference althought both image are at 100%!!!
    or
    1. I create in Motion 4 a new project with any preset.
    2. I import an image or a video
    3. I scale it down, by pulling one corner (=> the image or video becomes blurred)
    4. In the properties inspector I click on the arrow in the top right corner of that reverts to the original settings the image or video
    => the image is perfect
    or
    1. I create in Motion 4 a new project with any preset.
    2. I import an image or a video
    3. I scale it down, by typing any number in the properties inspector (=> the image or video becomes blurred)
    4. In the properties inspector I type the word "100" to get it back to 100%
    => the image is perfect
    So it seams that my problem occurs even at 100% but only if the image has first been modified in its size by pulling one corner and than put back to 100% through the properties inspector...
    hmmmm
    very odd.
    Louie
    Message was edited by: Louie13

  • Instruction on how to work with images and videos in the storage azure using php

    Dear Sirs
    I followed below instruction to make video and image storage on Azure using PHP:
    http://azure.microsoft.com/en-us/documentation/articles/storage-php-how-to-use-blobs/
    Whenever I record an image on Azure storage and download stored image there is no format
    in the stored image. and end up becoming like any other regular file. Othe problem is that I cannot see the concerned image in the browser. I already have checked recipient access and it is defined as public reading. 
    Could you also please provide me with an article instructing how to make upload,  download,
    show up on the browser and remove video and images from the azure storage area?
    Thanks & Regards,
    Pedro

    Hi Pedro,
    Thanks for your posting!
    I am not familiar with PHP. But from your description, I think your need pay attention to those points in your code:
    1.When you store file or download file, please write the file name and
    suffix, for example, you need store image as blob name "image.png".
    2.When you download file from Azure blob, you need set the content type.
    if your file is image, you could set the content type as image type.
    3.You could get the blob URI, and set your image URL as blob URI. Do this, you can show the picture.
    Please see this similar issue thread:
    http://phpazure.codeplex.com/discussions/472840
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to reduce an illustrator file to 25 percent without losing quality?

    I have created a graphic image at full size. The graphic company has requested the file to be reduced to 25% to allow uploading. I have no idea how to reduce the entire image while keeping it an illustrator file. I am also worried about losing the quality once it is expanded to 100%.

    The file I have created is at full scale it is 186 inches by 152 inches. It
    contains other things such as text and smaller images on top of the file. I
    would like to keep all of the proportions but I am needing to scale my file
    down to 25 percent of the original image. The graphic company requests this
    and they plan to open it and rescale it to 100 percent. I am also worried
    about losing quality when they rescale this photo. Am I making sense?
    Megan B. Pierce
    Photographer, Magic Kingdom, Disney College Program
    Southeastern Louisiana University 2014
    On Sun, Jan 25, 2015 at 2:03 PM, Monika Gause <[email protected]>

  • How to disable resizing images and tables in designMode?

    In own wysiwyg editor this function must be disabled. How make it disabled?

    A good place to ask advice about web development is at the MozillaZine "Web Development/Standards Evangelism" forum.
    *http://forums.mozillazine.org/viewforum.php?f=25
    The helpers at that forum are more knowledgeable about web development issues.<br>
    You need to register at the MozillaZine forum site in order to post at that forum.

  • How do I transfer images and videos from Apple Configurator supervised device to a computer?

    It seems that I can't do it even on the Mac (10.7) that supervised them. The Image Capture utility doesn't see any content on the device.

    Anyone? I really need to get the material out of the iPad...

  • How to store images and video clips in Oracle

    All,
    Can anyone guide me how to store the images and video clips in oracle through pl/sql and also the way to retirve it.
    Edited by: sikander on Sep 7, 2010 3:27 AM

    Some sample code
    connect sys schema  --if scott has no privs to create directory
    --where physical file store in the same machine where database load
    CREATE DIRECTORY IMAGES AS 'D:\images';
    GRANT READ ON DIRECTORY IMAGES TO SCOTT;
    connect scott/tiger
    create table my_book_diagrams (Image BLOB);
    DECLARE
      v_file_loc BFILE;
      v_diagram_loc BLOB;
      v_diagram_size INTEGER;
    BEGIN
      v_file_loc := BFILENAME('IMAGES','Layout.bmp');
      DBMS_LOB.FILEOPEN(v_file_loc );
      v_diagram_size := DBMS_LOB.GETLENGTH(v_file_loc);
      INSERT INTO my_book_diagrams (Image) VALUES (EMPTY_BLOB())
      RETURNING image INTO v_diagram_loc;
      DBMS_LOB.LOADFROMFILE(v_diagram_loc, v_file_loc, v_diagram_size);
    END;
    commit;

  • Transferring images and videos from Nokia 5800 to ...

    Hello,
    I have been using Nokia PC Suite for years and now decided to jump onto OVI suite because the Nokia PC Suite was not able (mysteriously) to move picture and videos to my pc using USB cable. I gave up and started using OVI suite, which (how bizarre) can transfer images and videos to PC via cable connection with no problem.
    I was used to transfering and deleting all that stuff once copies were made to my PC... please correct me if I am wrong ... does OVI allow to do so automatically? I mean deleting the images and videos from the phone when transfer completed? Now my phone's memory and external card are full and I am not sure what I should do.
    Thank you in advance for the help.
    Cheers.

    JESZ wrote:
    You know I have being facing the same problems, first when I installed the first version, and is quit the same with the new version of ovi suite.  in a 14 G memory card with more than 10 g of free space, the ovi suite do not want to transfer my music.  This is a mass!!!  I'm very disappointed.
    First of all..the Problems are not SAME but totally different..
    BTW how are you transferring the Music ? and is it showing any error / message ?
    You may try this..(if doing some other way though..). Open OVI Suite and select Music.. Goto File-->Add File to collection and select the file  (song) you want to transfer..It will now get displayed in the OVI Suite..Now, connect your phone to PC.. and simply Drag-and-Drop the dislayed file onto the Phone Icon (Bottom - Left Window..) .. 
    --------------------------------------------------​--------------------------------------------------------​--------------------------------------------------​--If you find this helpful, pl. hit the White Star in Green Box...

  • How do i delete photos and videos from my ipad without deleting them from my imac/

    how do i delete photos and videos from ipad without deleting them from my imac?

    Deleting photos and videos on your iPad will have no effect on your iMac.

  • HT5148 i am using final cut pro x. i have imported some images and video in my timeline. when i play back my video it looks fuzzy. but, when i pause it, it looks clear. how do i get my video to play clear.

    i am using final cut pro x. i have imported some images and video in my timeline. when i play back my video it looks fuzzy. but, when i pause it, it looks clear again. how do i get my video to play clear and not fuzzy?

    Same reply.

  • How to add a 'Download' feature in image and video gallery?

    Hello,
    I have created an image gallery on one screen and placed few videos on another screen.
    Now, I want to add a download feature in photos & footages both.
    Does anyone know how so I do that?
    Prompt response will be highly appreciated.
    Thanks in advance.
    Jay

    Hi,
    Could you please provide additional information on what you mean by Download feature ? Where do you want to download these images and video from ?
    Olivier

Maybe you are looking for

  • Display aspect ratio is off

    I have just loaded PS Elements 7 on a new computer - HP lAPTOP, Core 2 Duo, Vista Ultimate (64 Bit), 22" external monitor. Every image file I open does not display correctly - the aspect ratio is off. If the image size is 8-1/2" x 11", it displays as

  • Purchase order response

    hi:    Could someone tell me the function of the PO response? How  to use it? Tks.

  • Question about changing code progammatically

    In our code base there are many pkgs, procedures, and functions that have an email in the exception block. This email needs to be removed/updated. Can these objects be updated in a loop? Would you use execute immediate to re-compile? Would a cursor b

  • Default saving format

    Hi guys! I have searched the forum, but with no luck for finding an answer to my question. I can´t save my work in psd format. Yesterday I needed something to save in pdf and by mistake I clicked on the window that appears, not show up again and now

  • Exception at com.trend.iwss.jscan.appscan.runtime.PolicyRuntime.getB64StrPr

    WHEN ERROR OCCURS:- This problem never occured earlier but since the last few days this problem is occuring on my Windows XP System (Version 2002 Service Pack 2). CLASSPATH includes bcprov-jdk14-134.jar and bcmail-jdk14-134.jar. At this statement....