How to Reduce Image Size and show upload Progress Bar

i need to capture an image from the camera and send it to the server. however to reduce the amount of data transmitted i want to shrink the image and lower its resolution.
I have code that currently does the following :
UIImage *testImage = [UIImage imageNamed:@"image1.png"]; // this would come from image picker
NSData * imageData = UIImagePNGRepresentation(testImage);
// skipped code that showed URL string setup
NSString *postLength = [NSString stringWithFormat:@"%d", [imageData length]];
NSMutableURLRequest *request = [[[NSMutableURLRequest alloc] init] autorelease];
[request setURL:[NSURL URLWithString:urlString]];
[request setHTTPMethod:@"POST"];
[request setValue:postLength forHTTPHeaderField:@"Content-Length"];
[request setHTTPBody:imageData];
NSURLConnection *conn=[[NSURLConnection alloc] initWithRequest:request delegate:self];
1. need some way to shrink the image size to reduce data traffic
2. need some way to indicate a progress bar as data is being transfered to the server

1. The size is visible in the metadata panel, set the dropdown to EXIF. In addition, in the Grid, with Ctrl-J, you can set the options so that you will see the cropped size in the rectangle surrounding the photo.
2. You cannot, in one action, upload to multiple galleries. Each upload is its own action. I don't know if there is a plug-in to let you upload from LR to 500px in one action; clearly there are plug-ins for Flickr and Smugmug and several others. There should be no need to re-import. Normally, the plug-ins I mentioned will take a TIFF, resize it according to your directions, convert to JPG and upload.

Similar Messages

  • How to check image size and 500PX upload action please!

    Hi,
    Two questions please.
    1. How do you check the overall size of an image in Lightroom 4 before exporting.  In Photoshop it is image/size so what is it in Lightroom please?
    2. I have Canon raw files and tiffs and want to upload to 500PX and other web site galleries in one action.  Is it possible?  How do you set up an action to convert an image, say a tiff, to a certain size and then save as a jpeg and upload to 500pX using the plugin all in one action?  At the moment I am saving the tiff as a jpeg to a correct size using a pre set, but then exporting to another folder ready to either manually upload or re-import to Lightroom as a jpeg then upload. Surely there is a quicker way than this?

    1. The size is visible in the metadata panel, set the dropdown to EXIF. In addition, in the Grid, with Ctrl-J, you can set the options so that you will see the cropped size in the rectangle surrounding the photo.
    2. You cannot, in one action, upload to multiple galleries. Each upload is its own action. I don't know if there is a plug-in to let you upload from LR to 500px in one action; clearly there are plug-ins for Flickr and Smugmug and several others. There should be no need to re-import. Normally, the plug-ins I mentioned will take a TIFF, resize it according to your directions, convert to JPG and upload.

  • Reduce image size and print it out?

    I scanned an image (coloring on a postcard). This size is too big to fit into a 'album' picture in MS Picture It! All I want to do is REDUCE the image and save it so that it will fit into the computer photo album I'm creating.
    I've tried Image/Resize/Image Size and changed the sizing, but it still comes out the exact same size as the original. What am I doing wrong?

    > I want to REDUCE the image, not enlarge it.
    I understood that - what makes you think I didn't?
    > It's 948x645 pixels. I just want the image about an inch (respectively) smaller
    You can't think in terms of inches for screen images. You have to work in pixels and the actual size will depend upon the screen resolution on the machine being used to view the image.
    I'd reduce the pixel size by about 80 to get the effect that you want. Use Image/Resize/Image Size and make sure that you have "Resample" checked.

  • How to reduce image size on account of disk space shortage?

    I import images from my camera to iPhoto on my MacBook. I want to reduce their size on import because hard disk space on MacBook is limited.
    Is there any smart way how to perform it? I have not found any presets on Import dialog to reduce size.

    If the photos are important then get an external FW hard drive and move the library to it and operate from there. Delete the library from your MacBook.
    Next create a new library on the MB and copy only the photos that you have an immediate need for from the external library with the paid version of iPhoto Library Manager. It will copy the metadata, keywords, faces, places, and edited versions between libraries. You will a lean, mean travelin' library for the MB.
    You you add photos to the library on the MB while you're on the road you can copy them to the main library in the same manner with iPLM when you get back home.

  • How to reduce image size

    Hi All,
    I am reading a tiff file using JAI,By looping the tiff file ,Each page of tiff file , i am storing each page into BufferedImage ,then i am storing it as a PNG file (each page of a tiff file).
    Tiff file is of size 2000X3000 pixels (app).
    PNG images are also of same size.
    now i want to read the png images and display it as a Button image,
    Problem is i want to reduce the size of a PNG image which is of 2000X3000 pixels to 150X200 pixels
    How can i do it
    Please help me out .
    here is my piece of code
                File file = new File("filelocationf");
                SeekableStream s = new FileSeekableStream(file);
                TIFFDecodeParam param = null;
                ImageDecoder dec = ImageCodec.createImageDecoder("tiff", s, param);
                nopages=dec.getNumPages();
                for(int i=0;i<nopages;i++)
                    RenderedImage op = dec.decodeAsRenderedImage(i);
                    PlanarImage opi = new NullOpImage(dec.decodeAsRenderedImage(i),null,OpImage.OP_IO_BOUND,null);
                    image=new BufferedImage(op.getWidth(),op.getHeight(),BufferedImage.TYPE_INT_ARGB);
                    image = opi.getAsBufferedImage();
                    ImageIO.write(image,"PNG",new File(fname+".PNG"));
               }Thank u all.

    Thank u Very much for ur reply
    i.e want i want .
    but
    how to save a image by reducing its size.
    means
    ImageIO.write(image,"PNG",new File("filename".PNG"));
    {code}
    the above line of code will create png image of BufferedImage size.
    is it possible to reduce the BufferedImage size befor we write it.
    and also tutorial link abt  "g.drawImage();" method
    Thank u All.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to reduce image size while maintaining proportions?

    Thank you in advance for reading this.
    I was given an image with these dimensions:  w: 13.89  x h: 5.56 inches
    I'm being asked to make it fit these dimensions:  w: 8.5 x h: 5.47 inches
    I cannot figure out how to achieve this without the picture looking stretched, in terms of it's height. Everything looks constrained when you just do the image or canvas resize...any help/advice is greatly appreciated!

    Because the Aspect Ratios are different you will need to crop it and you will lose quite a bit of the image.  You can first scale the image to have a height of 5.47" using menu Image>Image Size.  In the Image size dialog un-check Resample and set the print height to 5.47" click OK this will set the Image's DPI resolution to print the image 5.47" high.  Next set the Rectangle marquee tool to use mode fixed size set the width to 8.5" and the height to 5.47" then click on the top left corner of the image.  You will see a selection the size you want. Use the arrow keys to move the selection for the best composition then use menu Image>Crop.   You will be losing  over 4" of the images width....

  • How to reduce image size on photoshop without losing quality

    i have a logo that needs to be shrunk. but as soon as i shrink it the image looks pixelated. if i leave it as-is, the website says the size is too big. please advise.
    Dale Mundi

    When you reduce its size, you are removing pixels which is one of the reasons it can look pixelated. You could add a slight blur, but that may make it look worse.

  • How i reduce the resolution and size or bytes of an image??

    Hi all,
    I want to reduce the size and resolution or bytes of an image?Is anyone knows the solution of my problem??
    Plzz help me out.
    Thankss

    rakhi@odm wrote: > I want to reduce the size and resolution or bytes of an image?Is anyone knows the solution of my problem?? > > Plzz help me out. That word is 'please'. It contains no 'z', let alone two of them.
    Darryl's suggestion is the best first course to reduce the image size. You might also experiment with reducing the color depth (e.g. - 64 million colors-> 256 colors/16 colors) of the images - which works particularly well for GIF (almost mandatory) or PNG - though it is relatively pointless for JPEG.
    BTW - adding dukes indicates 'interest level', but adding '4 dukes' indicates the problem is not very important. Do not expect me to make a second post on this matter unless the dukes are raised to '10' - I don't have the time.

  • How do you change the image size and resolution in photoshop everytime I change the width the height changes my measurements will not stay

    Can someone assist me with changing image size and resolution.  each time I change the width the height changes and vice/versa?

    There's a chain link between width and height. The point is to keep the aspect ratio the same, otherwise your picture would get stretched.
    You click on the chain-link to shut that off and you can adjust width and height separately.
    Also could you give us your version of Photoshop, what OS you are running it on (Windows 7 for example) and what exactly you want to do with your document?
    Resolution is the print term for how many pixels will be printed on an inch of paper. It doesn't apply if your image is intended for screen viewing.
    Gene

  • How to reduce the size of icons and descriptions of pallets?

    Hi!
    1. The "Control bar" is still something missing and to display the location of the same functions are different depending on the selected tool.
    Therefore, the tools will I need to keep an eye on pallets or icons. But description of the pallets is too great for me, takes place and I can not see as many pallets as I need.
    2. The idea to create multiple workspace and its continuous change is not good for me.
    When I work I prefer to have the tools at its one location, then I can rely on My reflexes when choosing a tool, and not constantly look where this time or constantly switch the workspace.
    3. How to reduce the size of icons and descriptions of pallets I, then he could fit more pallets in one column?
    Best Regards!

    Hi Monika,
    Nice to read you again. Thank you for your response.
    Yes, I read. It does not solve the problem about which I write. I guess that solves your opinion? Please hint.

  • How to reduce file size in Acrobat XI?

    How can I to reduce the file size is Acrobat XI Pro? Up until v.9, it was just a matter of opening the pulldown menu Documents > Reduce File Size. and then some more. How's that done in the newer versions of Acrobat?
    This was simple and easy:

    Works like a charm... I have a pdf file of a A1 size drawing that went from 6,7 to 1.7 Mb. The rendered image became slightly grainier (hardly noticable), but the text recognition stayed intact. Magnificent!
    FYI I've tested this file size reduction in three different runs:
    Save As Other... > Reduced Size PDF... (Acrobat 1.4 comp.) 1,69 Mb
    Save As Other... > Reduced Size PDF... (Acrobat 1.6 comp.) 1,75 Mb
    Save As Other... > Optimized PDF... 1,73 Mb

  • How to reduce the size of the pdf file?

    How to reduce the size of the pdf file?
    Thank you for the help,
    Best
    Jamal

    You have two options:http://www.screencast.com/t/p3srGDGP
    In this screen shot I have two method chosen.
    the one highlighted in yellow is more effective, except in the case where the pdf was from a Scan which is graphics only.
    select the one in yellow first and click on Fonts. Remove all duplicates. for some reason, I don't know if its defect in Acrobat, but usually multiple copies of the exact Font will show up and some cases there will font families not even used in your document.  remove all duplicates.
    Note: Duplicates do not mean for example: Helvetica, Helevetica Bold, Helvetica Bold Italic (these are three different fonts).
    You can reduce the quality of the graphics used and so on while in menu.
    The feature highlighted in green  more or less just reduce the general qaulity of the PDF. and may work for some PDF's

  • How to reduce the size of a pdf?

    How to reduce the size of a pdf?

    Not do-able with Reader. Acrobat Pro can reduce PDF file size, but... if it's text only (no media or images) it won't reduce any more than it already is.

  • Reducing app size and using memory

    Building with release preference Blank App template will give you a ~200kb .exe, which in running state use ~7mb of memory.
    It has a huge list of external dependencies.
    So, is it possible to reduce app size and using memory?
    Or, how safely unlink from app headers that really didnt used?

    generally speaking  premature optimization is not a good idea.
    Normally those tricks we learned from stone age are picked by tools already.
    (http://stackoverflow.com/questions/6215782/do-unused-functions-get-optimized-out)
    So if you experice performance/optimization issue
    optimization ususally goes with repeated measure -> optimize -> verify
    cycles.

  • How to reduce pdf size through c# in winrt app?

    Hi,
        I am creating an app in window 8 which will reduce the pdf size. But I am not getting how I can achieve this task. I searched a lot on google but not getting any suitable answer. I heard that Acrobat has sdk that reduces the pdf size. Can you guide me how I can get that sdk and how can I use it in window 8 app?

    The Acrobat SDK is an interface to Adobe Reader (which cannot reduce file sizes) and to Adobe Acrobat.
    However, neither one can be installed on Windows RT, nor used from a metro app.

Maybe you are looking for