Image manipulation and keeping its size same

Hi
I am working on an iPad application which allow user to redact portion of an image. Currently i have added UIView to my imageView and draw brush path using UIBezierPath and save the image by taking snapshot of my Uiimageview. Everythings working fine except the image size, suppose my image is of 1.5 Mb then after saving an image it reduces to 0.5Mb.
My requirement is that after saving image my image size should not reduce.
if (UIGraphicsBeginImageContextWithOptions != NULL) {
            UIGraphicsBeginImageContextWithOptions(self.imageVw.bounds.size, NO , 0.0);
            [self.imageVw.layer renderInContext:UIGraphicsGetCurrentContext()];
            viewImage = UIGraphicsGetImageFromCurrentImageContext();
            UIGraphicsEndImageContext();
This is what i am using to save an image.
Is there any other way to manipulate image without losing its size. For example reading image pixels and writing and replacing new pixels to it?
Looking for your answer.
Thanks.

Any help would be appreciated...

Similar Messages

  • When my lightroom opens up I keep getting an error message that states, "Lightroom encountered an error whne reading from its preview  cache and needs to quit" I have relaunched it a number of times and keep getting the same message.

    when my lightroom opens up I keep getting an error message that states, "Lightroom encountered an error whne reading from its preview  cache and needs to quit" I have relaunched it a number of times and keep getting the same message. Any thoughts on how to fix this?

    You need to delete your preview cache and have Lightroom rebuild it.   Cache location can be found here.
    https://helpx.adobe.com/lightroom/kb/preference-file-locations-lightroom-41.html
    Why And How To Clear Your Lightroom Cache - Lightroom Fanatic

  • HT201210 I have a "firmware file not compatable" message whilst trying to update my iPhone4 from Sofftware Version 5.1 to 5.1.1 via iTunes. I have tried about 3 times and keep getting the same message

    I have a "firmware file not compatable" message whilst trying to update my iPhone4 from Sofftware Version 5.1 to 5.1.1 via iTunes. I have tried about 3 times and keep getting the same message. Any ideas/suggestions?

    Since posting the above - I have now tried downloading the update on my iPhone rather than via iTunes, and its just worked and installed and seems fine! Was a lot quicker as well than the download time via iTunes

  • An error ocurred while loading this content! Ive using my ATV for more than 6 months and last week i update the sw and since then i have rented two movies and keep seeing the same message. I have reset the ATV two times without success. Any suggestions?

    I keep getting this message: AN ERROR OCURRED WHILE LOADING THIS CONTENT
    ATV was working fine until i did a version update last week. Since then i have rented two movies and keep getting the same message
    I restarted the ATV - no success
    I reset my wireless - no success
    I reset my ATV - no success
    netflix is working fine since i was able to see a movie there. Youtube was also working fine. I think there should be something wrong with iTunes
    Any ideas?

    I keep getting this message: AN ERROR OCURRED WHILE LOADING THIS CONTENT
    ATV was working fine until i did a version update last week. Since then i have rented two movies and keep getting the same message
    I restarted the ATV - no success
    I reset my wireless - no success
    I reset my ATV - no success
    netflix is working fine since i was able to see a movie there. Youtube was also working fine. I think there should be something wrong with iTunes
    Any ideas?

  • I am trying to load iTunes and keep getting a error 126 and reinstall program.  I have uninstalled and reinstalled twice and keep getting the same error message.  How can this be resolved.

    I am trying to load iTunes and keep getting a error 126 and reinstall program.  I have uninstalled and reinstalled twice and keep getting the same error message.  How can this be resolved?

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall move on to the next item)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
    Please note:
    Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    tt2

  • When I try to update an app in the App Store i get a message "There was an error in the App Store. Please try again later. (13)"  I have tried many many times and keep getting the same message.  How do I resolve?

    When I try to update an app in the App Store i get a message "There was an error in the App Store. Please try again later. (13)"  I have tried many many times and keep getting the same message.  How do I resolve?

    First take the steps recommended in this support article. If there's no change, continue as follows.
    Back up all data.
    Triple-click anywhere in the line below on this page to select it:
    ~/Library/Cookies/com.apple.appstore.cookies
    Right-click or control-click the line and select
    Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item selected. Quit the application if it's running. Move the selected item to the Trash. Relaunch the application and test.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
    Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

  • I can't start Facetime. Keep getting a pop-up window saying that "an internal FaceTime error occured. There was a problem with FaceTime. You need to quit and open FaceTime again". I keep retrying to open and keep getting the same message over again.

    I can't start Facetime. Keep getting a pop-up window saying that "an internal FaceTime error occured. There was a problem with FaceTime.
    You need to quit and open FaceTime again". I keep retrying to open and keep getting the same message over again.

    @ reichard
    yeh man i have the same problem i think when i open the ****** facetime it dosent open there is a line in facetime icon it dosent open i dont know how it work **** i want it to work hope someone help me thx

  • Trying to install photoshop elements 11 and keep getting the same error message: "The installation process encountered an error while installing shared technologies."

    Trying to install photoshop elements 11 and keep getting the same error message: "The installation process encountered an error while installing shared technologies."

    Medops20 please see Install rollback and Shared Technologies | Windows for information on how to resolve the current error.

  • I ordered the new ipad, I already have an ipad and an ipod, can I use my same itunes for all of them? I want to turn my original ipad over to my partner and keep its contents separate from mine. Thx

    What do I have to do to set up the new ipad and keep the old one as it is?
    Thx,
    JOey

    (I think the daughter got he better end of the deal!)   I believe if you change the password and user id one of the devices it will stop that from occurring. But I'm not the one to tell you how to do it; someone like "Illaass" (Illaass seems to know how to correct / fix almost anything!) will know how if you don't. Just look for the "cat" icon.

  • How do i increase height of mc and keep its width?

    i have a mc which seize is height = 150 and width = 2 (like a line).
    i have a script which rotate this line and increases its length. this works, however i dont know how to keep the width so that it wil remain 2.
    this is the scrip in as3 :
    function rotateMoveClip_u(e:Event)
              var target=(center.x);
      e.target.rotation=((-target+45)/4)*1.25;
              mc.height = Math.sqrt((target-75)*(target-75) + 150*150);
      mc.width=2
    //this line is  is wrong
    maybe using "height" and "width" is wrong?
    thank you

    Even though you rotate your line (to say, horizontal), you still need to adjust the height (because it's original orientation was a vertical line). So when you rotate the line so it's horizontal you do not update width, you still update height. Just leave width alone.
    Same goes if your line was originally horizontal and you wanted it to be vertical. If the original width was 150 and height was 2 (horizontal line) and you rotate it 90 degrees to be a vertical line, you would not adjust height to make it a longer vertical line. You'd adjust width.

  • How to batch change all iPhoto imported movies and keep them in same event?

    I have several years of AVI movies that won't be read in iMovie 08 but can be viewed and played using QT from iPhoto 08.
    Anybody know how i can batch convert the entire library of movies in my iPhoto library to mac happy format and keep their creation date, save them back into the same location, and modify iPHoto database to re-path to new clips then remove old? I must maintain organization as these videos are labeled, and dated and sorted according to my daughters entire life! I don't want a new folder with 1000 vidoes, I like to keep them in the 'event' folder they live in and have iPhoto point to them instead of the .avi files that iphoto has no problem with but iMovie does.
    Sounds insane, but it's the only solution i can think of to use iLife products with one of the most popular compact digital camera's in the world which saves in a format that works perfectly everywhere else within my mac other then iLife.
    I'm sorry if i sound a little peeved.. i've been desperately trying to make a solid pipeline for personal media out of my mac since i've switched over, and found that unless your media is born and dies in quicktime, the mac isn't really that friendly.

    vfman
    Not quite an answer, but perhaps the way towards an answer:
    You want to round trip these avi files out of iPhoto, convert them to a different file type and the bring them back into iphoto whole preserving all of the arrangements you have for them in iPhoto. Correct?
    You cannot do that for a very simple reason, and that is converting the file type will create a new file with a new file name.
    SO we have to be clever... and this might be a way to do that:
    1. Title the files in iPhoto to use their Creation date in the title (so we get Jan 01 2005 - Her First Steps.avi, or somesuch.) I suggest this, but there may be a way to change the file date on the new movies that I don't know about.
    2. Export the files in batches - month by month say - to the desktop and there, process them into the new format. (You'll need to research the Software for that job yourself, I'm no help there)
    Now we have a file called Jan 01 2005 - Her First Steps.mov (or whatever the suffix is going to be.
    3. Create a new library in iPhoto (hold down the option (or alt) key and launch iPhoto, choose 'Create Library' Give it a distinctive name: The great library fix, or somesuch)
    4. When you have the new library organised to mirror - as much as possible, delete the avi's from your main library, and use iPhoto Library Manager to move the reformatted files back...
    That's an approach to the issue. Have a think about it, maybe it'll spark you - or someone else to come up with some improvements - or a whole better model.
    Or, we could try and get v7 to read the movies like v6 did... what are the symptoms?
    Regards
    TD
    Message was edited by: Terence Devlin

  • Is it possible to format my iphone 4 and keep its old ios of 4.3.5

    Hello,
    I want to fully restore my iphone, but I want to keep its original version of 4.3.5  Is there anyway to do this?  I want an authentic way.  I want the original 4.3.5 is this legal?

    Apple only supports restoring to the current available version of iOS for the device.  For the 3GS, 4 and 4S this is version 5.1.1.
    There is no legitimate reason to restore to any other version.  The only reason you might want to stick with an old version is for illegal unlocks or hacking/jailbreaking which cannot be discussed here.

  • Editing PDF and keeping file size small

    We are having lot of difficulties in keeping the PDF file small after editing. Our PDFs have text and fields and are used in a browser. They need to be updated multiple times a year to reflect change in text.
    PDF was created from MS Word 2010 using Acrobat X.
    Word had only Arial and Verdana fonts.
    When PDF was created from word, settings were set to "Never Embed" fonts. Till this point, all seems fine.
    Now, the moment we try to edit text (even add a letter), PDF prompts that fonts may be embedded and file size increases by 20-30KB.
    Checking File-Properties-Fonts show that font has changed to "Arial, Bold  Type: True Type (CID), Encoding: Identity-H". Before editing, font type was not CID.
    Under Optimization, there is no embedded font and we unchecked “subset all embedded fonts in optimization”. Save the file.
    Still File size is higher by 10k-20K - though only one word was added.
    Questions:
    How to avoid font type CID getting added automatically by Acorbat? It seems it takes more space and we don't need it. We couldn't find a way to remove/replace it.
    How to keep the file size not increasing much? Every time we edit with only few words added and do optimize, etc. still file size increases by 10-20 KBs.
    thanks
    apjs

    As these PDFs are used as electronic agreement forms and have fields/Javascript, recreating them from word requires lot of work. We do understand if there are substantial changes then we should recreate from word as PDF is not designed for major editing. However, in most cases we are trying to edit few lines of text and still file size is increasing by 10-20K.
    We have tried Save As but so far optimization option gives us better results in terms of reduction in file size.
    We do use common fonts - like Arial, Verdana, Times New Roman. We understand that we should embed uncommon fonts but we avoid uncommon fonts as embedding increases PDF file size.
    CID is coming up even when common font like Arial is being used.
    Thanks for trying to help us.

  • TS3474 My iPod shuffle operation isn't working and keeps playing the same tune! The shake to shuffle is turned off. Any ideas? Thanks!

    My iPod nano has suddenly stopped shuffling tunes and just repeats the same track. The shake to shuffle is off - any ideas? Thanks!

    It sounds like the repeat setting has been enabled. See page 21 of your iPod's User Guide for instructions on turning it off.
    http://manuals.info.apple.com/en_US/iPod_nano_6thgen_User_Guide.pdf
    B-rock

  • Can you open a Jpeg graphic and reduce its size without it becoming pixilated and blurry?

    Hi I am new to Illustrator and photoshop.
    I am designing a birthday poster on A4.  I recently received a graphic of a bird that is in JPE and PNG format. When I
    opened the graphic it was huge - as big as the screen and looked fantastic, smooth outline and crystal clear.  Its a great
    graphic but I want to make a border of small birds to outline the poster.  When I downsized the graphic by transforming
    it to 10% its original size it looked really rubbish - all blurry and when i printed it out it was not very good at all!
    I'm obviously completely new to Adobe software so i don't know all the correct terminology.  Basically I just want the graphic
    of the bird to be alot  smaller and look as smooth and sleek as it does when its massive.  The graphic is 1200 x 1200 pixels
    and i want it to be about 50 x 50.  How do I do it?  Can it be done? Or is all my efforts in vain!!!
    A few people have said I need photoshop but when I tried it on there it still didn't work.  I'm wondering if its the graphic
    that is the problem.
    Thanks in advance for your help
    Lauren

    Go back to photoshop open the image in the in Phooshop then
    1 go to Image>Image Size
    2 uncheck at the bottom left the option to resample
    3 make certain Constrain Proportions is checked
    4 to the right of the width input field there is three drop downs on the top one select percent
    5 then in the width change the percentage to 10%
    6 now look at the resolution field if it is more than 300 or 355 ppi at this point check the resample art and change resolution setting to 300 or 355 ppi or what ever your printer prefers. It is not likely with this reduction it will be smaller than 300ppi.
    7 now save the file with a different name using the Save As command.
    8 place this file in Illustrator and make it symbol now place the symbols instances instead of copying it each time.

Maybe you are looking for

  • Cycle Count Problem

    Hi, The 'Cycle Count Items' form is blank even after compliing and have seven items against cycle account name'Warehouse 2011' Any ideas where we are going wrong? Many thanks

  • Issue with CE 7.2 Trial version Installation

    Hi Friends, I was installing the trial version of CE 7.2 where the installation went smoothly until it reached the step "Install Java engine". I am running the installation using a desktop user with admin rights. Here is a brief information about the

  • Sync Send

    I want to design a sync send to BPM. How can i do?. I am using JDBC adapter as sender..... BPM receivers the message.......then pass it to R3 using RFC Adapter.

  • Infotype and Include Structures in HR - ECC50

    Hi, I would like to know what are the changes in each and every infotype like different include structures or added fields or modified or deleted fields.  How do you compare 46C version with ECC50. Is there any way apart from remote version managemen

  • HT201250 Where does the Time Capsule pick up the name shown on the icon when it is backing up?

    I had a problem with Time Capsule, it backs up both my wife and I's iMac.  When we got the problem resolved, the backup icon on my wife's iMac was the same as before but the backup icon (the icon that shows when it is actually backing up) changed the