Please add "resize image before uploading" and "do...

SOME of us do NOT want to send bothersome, huge images over mobile devices just to share a pointless moment with a friend - or an enemy.
Wechat already has this AWESOME feature, so maybe Skype should have one too - as it is so cumbersome to go into another program to resize and save an image before sending it.
Please add a button to have a possibility of sending a low resoluton version of all images and also before downloading an image to check out if it is worth the money and bandwidth.
Sincerely, The Wrath of Diego

You can resize some bitmap, or movieClip, etc. to a new size by making a new bitmapData at the desired size and drawing the source into the new bitmapData. When doing the draw use a Matrix to accomplish the scaling. Something like so:
var newBitmapData:BitmapData = new BitmapData(320, 240);
var m:Matrix = new Matrix();
m.scale(newBitmapData.width / originalBitmapData.width, newBitmapData.height / originalBitmapData.height);
newBitmapData.draw(originalBitmapData, m);

Similar Messages

  • Previewing an image before uploading

    Hi,
    I would like to upload images in my application and save those uploaded images to one folder in my system, i could do that with any problem. But i have to preview the image before uploading.
    How to do this in JSP or either in html?
    please help me in doing this..
    thanks in advance

    Write the image to some temporary location in your server machine. Either public or non-public. If non-public, you could use a servlet to display the image. If the end user has somehow confirmed the preview, then just move that image to the desired permanent location.
    Working with file paths isn't going to work. IE is the only browser which is so dumb that it sends the complete client side file path along with the file name. In other browsers you won't know from which client side path the image is been uploaded.

  • How to customize the images before upload to KM

    hai everybody
    i want to know how to customize the images before uploading into KM.if anybody know reply.thanks in advance

    Hi Kasturi,
    in fact, you could implement a repository service reacting omn the creation of resources, checking if it's an image, and with an image editing API at hand, change the image to your needs; if you need it to be done automatically.
    Hope it helps
    Detlev
    PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!

  • Previewing an image before uploading it using the FileReference class in flex 3

    Previewing an image before uploading it using the FileReference class in flex 3 ?

    hai,
              when this code is used in my application ,i got the name of image and new frame is added each time .But image is not displayed.....
    The code  starts like this
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark"
                xmlns:mx="library://ns.adobe.com/flex/mx" initialize="init()"   backgroundColor="white" width="100%" height="100%">
        <fx:Script>
    <![CDATA[ 
                    import mx.controls.Alert;
                    import mx.messaging.Channel;
                    import mx.messaging.ChannelSet;
                    import mx.messaging.channels.AMFChannel;
                    import mx.rpc.events.ResultEvent;
                    import mx.controls.Image;
                    import spark.events.IndexChangeEvent;
                    import mx.managers.DragManager;
      <mx:DataGridColumn headerText="Dimension Value"  width="10" dataField="dimensionValue"/>
                                                   <mx:DataGridColumn headerText="Unit Nmae"  width="10" dataField="dimensionUnitName"/>
                                                   </mx:columns>
                                           </mx:DataGrid>
                                           <mx:Spacer width="2%"/>
                                       </mx:HDividedBox>
                                       </mx:VBox>
                   <mx:Spacer height="0"/>
                <mx:VBox width="100%">
                    <s:HGroup height="90" top="0" left="0" right="0" verticalAlign="justify" gap="10" paddingLeft="5" paddingRight="5" paddingTop="5" paddingBottom="5">
                        <s:Button id="btn_loader" top="5" bottom="24" width="100" label="load" click="loadImages()"/>
                        <s:Group width="100%">
                            <s:Group name="cl" top="0" left="0" bottom="0" width="20" mouseOver="//scroll_on(event)" mouseOut="//scroll_off(event)">
                                <s:BitmapImage source="@Embed('../assets/left.jpg')" top="0" left="0" bottom="0" right="0" fillMode="scale"/>   
                            </s:Group>
                            <s:List id="imgList" skinClass="skins.ListSkin" top="-3" left="27" right="28" bottom="10"
                                    dataProvider="{ImageCollection}" itemRenderer="Image_Render">
                                <s:layout>
                                    <s:HorizontalLayout gap="0"/>
                                </s:layout>
                            </s:List>
                            <s:Group name="cr" top="0" right="0" bottom="0" width="20" mouseOver="//scroll_on(event)" mouseOut="//scroll_off(event)">
                                <s:BitmapImage source="@Embed('../assets/right.jpg')" top="-1" left="0" bottom="0" right="0" fillMode="scale"/>
                            </s:Group>
                        </s:Group>
                    </s:HGroup>
                    <s:SkinnableContainer id="dropCanvas" top="100" left="5" right="5" bottom="5" backgroundAlpha="1.0" alpha="1.0"
                                          dragEnter="dropCanvas_dragEnterHandler(event)"
                                          dragDrop="dropCanvas_dragDropHandler(event)" contentBackgroundColor="#914E4E" backgroundColor="#F7F7F7">
                    </s:SkinnableContainer>
                </mx:VBox>
                <mx:Spacer height="5"/>
                                      </mx:VDividedBox>
        </mx:Panel>
    </mx:Canvas>

  • IPhoto 2 shrinks images before uploading them to flickr

    The new version of iPhoto 2 shrinks images before uploading them to flickr. Now you can't use flickr to backup your orginal photos through the iphoto app.

    In fact no matter if I use a High or Medium compression size JPEG, the size after upload is the same.
    Starts with 1,5 MB/5600px (high) or 780kb/5600px (medium) JPEG and ends after upload in 115kb for a 1024px image.
    This means that iPhoto auto compress in order to publish to Mobile Me, even if we start with a bigger file.
    I hope this info is useful to others.
    Thanks.

  • Required field, UPC, is missing. Please add UPC to the listing and retry the operation.

    What to do about this: "Required field, UPC, is missing. Please add UPC to the listing and retry the operation." ? We sell cassette tapes and sometimes they are are of a vintage that predates upc codes.

     forester_studios wrote:OK thanks for the input; but selecting 1 item leaves the other 4 or 5 unsearchable I would think.  Seems like a typical ebay answer (which is not much better than no answer as far as problem solving goes).   I have to wonder if ebay thought this new requirement through.  Often upc codes on Canadian items are not in ebays system at all.  So are these items which have upc codes un-listable  since ebay does not acknowledge they exsist? In that case, here is what I intend to do.... List the most important item's UPC in the actual required UPC field and then create as many other 'custom' item specific UPC fields as are allowed. You need to be on the long form selling form to do it. Call them Other UPC and Even More UPC or something. And then, just to be sure, I'll list all the UPCs in the item description.  Buyers probably won't search for UPC (unless they're standing in a retail store with their smartphone in hand and looking for cheaper pricing online) but search engines do. When I look for the products that I sell on google, I get amazon results 19 times before I see one from eBay. I'm certain that's the UPC talking there. We do need Product Identifiers on eBay. Implementing them is the difficulty. Ebay is aware that the UPC for Canadian packages may be different than the exact same in an American one. I've raised it and was told they were looking into it. Use the MPN identifiers too. Pretty much nothing I list can be found in the product catalogue on ebay.ca (is there one?) so I don't know what to expect for resolution there if and when the Catalogue version of the Product Identifiers are shown to be clearly wrong but I know it happens, here and elsewhere. The last order that I placed with Amazon had a new UPC pasted over an old, similar product. It was not what I ordered. Close but no cigar. Hopefully, when all of this becomes 'official' in two weeks, there will be a timely manner to address item misinformation within the Product Catalogue. In the meantime, I would state all the item properties in the Item Description area to cover my butt.   

  • Previewing an image before uploading it using the FileReference class

    Previewing an image before uploading it using the FileReference class in flash player 3 not in SDK4

    Previewing an image before uploading it using the FileReference class in flash player 3 not in SDK4

  • Cannot resize images after CS5 and CC updates

    I recently installed Photoshop CC and the CC app recently updated  both my own CS6 and CC. I find that I now cannot resize images using the  "image size" dialog. Any changes I try to make in dimension or  resolution are ignored. Has anyone else encountered this problem, or  does anyone have any info which will help me discover what I am doing  wrong? Before, I simply entered the resolution and size I wanted for the  image. Now I cannot .I have tried suggestion here: e.g., deleting pixels when cropping, etc., but nothing seems to work for me.

    Thank you, Mylenium. Just curious... the CS5 update was done before I had
    the CC app. Some CS6 updates were done before I joined the CC (the CS5 in
    my problem subject-line was a type--should have been CS6), and one through
    the cloud. CC, of course, was all updated through the cloud. Am I to
    understand that CC would have done something to my owned, personal version
    of CS5, which has the same problem?
    Not an auspicious beginning with the cloud if complete
    uninstalls/reinstalls are necessary right off the bat. I wonder how often
    this type of problem will occur using the cloud, which obviously now
    monitors my personal version of CS6, as well.
    isabelle ann

  • Please help me on file upload and download

    Dear all..
    i am new in this i try to apply the tutorial for file upload and download but it is old i work on net weaver 7.1 and many proery has change and i cant applyb this tutorial...

    Thanks. If you can provide some more details about where - some application, or a web page - are you trying to upload or download a file we can discover to documentation you need. Also, it will be of help if you tell what is the name of the outdated guide you mentioned.
    Best regards,
    Rossen

  • Compress an image before upload

    Hi,
    Is there a way to compress an image using Flex? the scenario I have is: the user takes a picture from a mobile device camera, I then upload it to the cloud. I'd like to be able to shrink the image in size before I upload it as it takes ages.
    Many thanks

    I believe there are PNG and JPEG encoders

  • Image cropping before uploading an image

    Hi all,
    I am using webcenter spaces 11.1.1.8.6. I have a requirement where i need an option to crop a image before uploading it. For example before a logged in user uploads his image he should be able to crop only a certain part of the image and upload it. How do i achieve this

    Well, I never tried it.But you can use some jquery plugin for this. There is no support out of the box,
    try using jcrop
    Jcrop: the jQuery Image Cropping Plugin
    or see in this list which can work best
    http://www.jqueryrain.com/demo/jquery-crop-image-plugin/

  • Do I need to reduce the images size in pixels before upload them to M.Me?

    Do I need to reduce the images size in pixels (actual size jpeg 5616 × 3744 pixels/766kb) before upload them from iPhoto to a Mobile Me Gallery?
    Otherwise they will be heavy or the upload process take care of that?
    It would be nice that iPhoto took care and optimize the images to display online without any more work, because I´ve 1200 images to upload and they´re jpegs 5616 × 3744 pixels. It´s just to viewing purposes. Not o download or print.
    Thanks.

    In fact no matter if I use a High or Medium compression size JPEG, the size after upload is the same.
    Starts with 1,5 MB/5600px (high) or 780kb/5600px (medium) JPEG and ends after upload in 115kb for a 1024px image.
    This means that iPhoto auto compress in order to publish to Mobile Me, even if we start with a bigger file.
    I hope this info is useful to others.
    Thanks.

  • In browser editing: Can my client add new images with hyper-links to their websites without having to replace images already there?

    My client would like to be able to add new images to their site themselves and use them as hyper-links to external sites without having to replace an old image with the new one (or blank place holding images - far from ideal). Is there ANY way that this is possible? They do not wish to update and add new images/links regularly and it is certanly not intended to be used as a blog or way of being able to constantly keep content new and fresh otherwise I would set them up with a blog account and add that to the site. It is merely a way of adding links to other local businesses every once in a while.
    Please see the page they wish to update... Friends. (Please excuse the layout... the customer will not be able to resize or edit the images themselves and wishes to add them as-is!)
    Thanks in advance for any help. If anybody knows how I can ask an Adobe official mod, that would be great... that, or make a request for a future addition in an update?
    Warm regards,
    Ben Gathercole

    Hi Andria,
    Changing links is currently not possible with in-browser editing.
    Please post this as a feature request in the following feedback form :
    http://feedback.inbrowserediting.com/?url=
    Regards,
    Akshay

  • Upload and Resize Image not inserting filename in database

    I have a form that I created using the insert record form wizard. One of the fields is a file field and my form enctype is set to multipart/form-data. I then used the upload and resize image behavior and set the parameters. When testing the form the file uploads to the correct directory but no entry is made into the database for that particular field. The other fields are entered into the database just fine. If it helps, here is the code generated before the  tag:
    <br />
    <br /><?php require_once('../../Connections/test.php'); ?>
    <br /><?php<br />// Load the common classes<br />require_once('../../includes/common/KT_common.php');<br /><br />// Load the tNG classes<br />require_once('../../includes/tng/tNG.inc.php');<br /><br />// Make a transaction dispatcher instance<br />$tNGs = new tNG_dispatcher("../../");<br /><br />// Make unified connection variable<br />$conn_test = new KT_connection($test, $database_test);<br /><br />// Start trigger<br />$formValidation = new tNG_FormValidation();<br />$tNGs->prepareValidation($formValidation);<br />// End trigger<br /><br />//start Trigger_ImageUpload trigger<br />//remove this line if you want to edit the code by hand <br />function Trigger_ImageUpload(&$tNG) {<br />  $uploadObj = new tNG_ImageUpload($tNG);<br />  $uploadObj->setFormFieldName("picture");<br />  $uploadObj->setDbFieldName("picture");<br />  $uploadObj->setFolder("../images/");<br />  $uploadObj->setResize("true", 120, 0);<br />  $uploadObj->setMaxSize(1500);<br />  $uploadObj->setAllowedExtensions("gif, jpg, jpe, jpeg, png, bmp");<br />  $uploadObj->setRename("auto");<br />  return $uploadObj->Execute();<br />}<br />//end Trigger_ImageUpload trigger<br /><br />// Make an insert transaction instance<br />$ins_team = new tNG_insert($conn_test);<br />$tNGs->addTransaction($ins_team);<br />// Register triggers<br />$ins_team->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Insert1");<br />$ins_team->registerTrigger("BEFORE", "Trigger_Default_FormValidation", 10, $formValidation);<br />$ins_team->registerTrigger("END", "Trigger_Default_Redirect", 99, "../team.php");<br />$ins_team->registerTrigger("AFTER", "Trigger_ImageUpload", 97);<br />// Add columns<br />$ins_team->setTable("team");<br />$ins_team->addColumn("id", "NUMERIC_TYPE", "POST", "id");<br />$ins_team->addColumn("sort", "NUMERIC_TYPE", "POST", "sort");<br />$ins_team->addColumn("name", "STRING_TYPE", "POST", "name");<br />$ins_team->addColumn("title", "STRING_TYPE", "POST", "title");<br />$ins_team->addColumn("description", "STRING_TYPE", "POST", "description");<br />$ins_team->addColumn("picture", "FILE_TYPE", "FILES", "picture");<br />$ins_team->setPrimaryKey("id", "NUMERIC_TYPE");<br /><br />// Execute all the registered transactions<br />$tNGs->executeTransactions();<br /><br />// Get the transaction recordset<br />$rsteam = $tNGs->getRecordset("team");<br />$row_rsteam = mysql_fetch_assoc($rsteam);<br />$totalRows_rsteam = mysql_num_rows($rsteam);<br />?>

    If the reason is about memory, warning message should be happened when upload the image, because "show thumbnail" means resize at second time, how come you failed to resize the picture that system let it upload succeed at the first time by the same resize process?
    upload procedure
    a.jpg: 2722x1814, 1.2mb
    upload condition: fixed width 330px, 1.5mb
    "upload and resize" a.jpg -> file upload -> "resize engine" -> passed (but not work and no warning message)
    "show thumbnail" a.jpg -> "resize engine" -> failed (not enough memory)
    it doesn't make sense.
    and you miss an important key point, I upload the same picture myself, and resize work, so I said it happened at random, and that's why I am so worried.

  • Image Upload and Resize Trigger Order Question

    Hello All,
    I do enjoy and like using the ADDT, however I do have a problem with the Image Upload and Resize trigger.
    I understand that this trigger is of the AFTER type, and as such, the insert record I have on the page is implemented first and the data is inserted into the table, then images uploaded provided they are smaller than 200 kB in size.
    However, as I have a field that is unique in the database, if the upload fails I am unable to upload any files which are under the size and put that information into the database, as there is already a record with the unique value.
    Is there an easy way to work around this by trying to capture the error before the data is inserted into the database?
    An idea I have is to: check the unique field with the value to be inserted, if fails, change unique value -> nothing inserted yet, no files uploaded.
    If the unique check passes, insert remaining data and trigger the upload and resize image trigger, once that is complete, have an update of the table to update with the unique value.
    I can see the above working, (I think), but I just have to write the code to implement the idea.
    I am not sure how to use the roll-back triggers either, if the Upload Image trigger fails, to remove the inserted record.  But if I can manage the roll-back trigger to remove the record, that is an option to consider for what I want to achieve.
    Thanks to any help people can provide.
    Cheers,
    Ian.

    Thank you for your reply.
    I have a work-around, I have split the forms over two pages, rather than put everything on one page - which introduced another issue, to which I have made a work-around of sorts too.
    The two forms, on different pages, is probably a better idea in terms of better management of data input. The work-around was a Header redirect based on a form variable, as, if I used a Custom Trigger to dynamically generate a new URL, it generated an escaped-encoded URL - to which I have not figured out how to fix.
    So, in the meantime, it works, so I will settle for that at the moment.
    Again, thanks for you reply.
    Ian.

Maybe you are looking for