How to read compression quality ?

Hi,
On ImageWriteParam, there is a getCompressionQuality().
I should want to read this property on an existing image file, but there is no getCompressionQuality on a ImageReadParam.
How is it possible to read this compression quality from an image file ?
Thanks.

I think you're misinterpreting something. The compression quality only* comes into play when writing out an image. Once the image data has been compressed then that's it. You now have the image data and thats all. You can't tell whether this data came from compressing an image 1% or 99%. It's not like a zip archive. The only exception I can think of is if the format decides to save this information in the image's metafile (but I doubt it).

Similar Messages

  • How to read compressed files from unix on 10gR2 EE?

    We have large historical data stored as text files on operating system and compressed because our free disk space is very limited. Rarely because of data quality or legal needs we need to read these information.
    So I thought of unix pipes(mknod), reading while uncompressing through a pipe similar to this example; http://www.orafaq.com/faqunix.htm#EXPORT
    but this method is very slow.
    Is it possible to SELECT these compressed files, maybe a custom Oracle driver for external tables you may heard of?
    Thank you.

    There are no oracle drives to read from an external zipped file. You could uncompress the file to a named pipe and read the sqlloader from the pipe:
    $ mknod fifo.dat p
    $ uncompress the file and redirect it to the > fifo.dat & #pseudocode
    Let SQLLDR read from the Named Pipe:
    sqlldr userid=scott/tiger control=load.ctl data=fifo.dat
    It isn't guaranteed to be faster, just convenient for you not to uncompress the complete file prior to perform the sqlload operation.
    ~ Madrid
    http://hrivera99.blogspot.com/

  • How to read compressed data with an applet (mod_deflate)

    My applet reads a text file from a web server by opening a socket (see code below). Since the text file is very large, I would like to use apache's mod_deflate. But the web server doesn't seem to recognize the applet as an application where comepressed data can be send to.
    How can I convince the web server? Are there any code snippets?
    String command = "GET "+name+" HTTP/1.0\n\n";
    StringBuffer retval = new StringBuffer();
    String buffer;
    boolean isBody=false;     
    Socket socket = new Socket(host, port);     
    OutputStream out = socket.getOutputStream();
    out.write(command.getBytes());     
    out.flush();
    InputStream in = socket.getInputStream();                    
    InputStreamReader isr = new InputStreamReader(in);          
    BufferedReader bfr = new BufferedReader(isr);
    while ((buffer=bfr.readLine())!=null) {
         if (isBody) retval.append(buffer).append("\n");                         
         if (buffer.length()==0) isBody=true;                    
    ....Thanks in advance

    Good hint into the right direction, deflated data arriving now...
    .... but how do I inflate them?
    import java.net.*;
    import java.io.*;
    public class Test2 {
        public static void main(String[] args) throws Exception {
            URL def = new URL("http://demo:8090/deftest/data.txt");
            URLConnection defcon = def.openConnection();
            defcon.setRequestProperty("Accept-Encoding", "gzip,deflate");
            BufferedReader in = new BufferedReader(
                                    new InputStreamReader(
                                    defcon.getInputStream()));
            String inputLine;
            while ((inputLine = in.readLine()) != null)
                System.out.println(inputLine);
            in.close();
    }Thanks so far, Dieter

  • HELP how do I compress my DV Video into DVD Studio Pro??

    Thank you in advance for taking your time out to even read this!
    I have a 40 minute 4:3 DV format video in final cut pro and I need to fit it on a DVD (4.7 gig) using DVD studio Pro. I have the whole FInal Cut Pro package (compressor, live type, etc...) so how would I compress the video and then put it in DVD studio pro, with the highest video quality possible?
    Again thanks to all you people taking time out to just help!!!! Darin.

    Take a look at these liks also
    http://dvdstepbystep.com/faqs_7.php
    http://dvdstepbystep.com/faqs_3.php
    http://dvdstepbystep.com/qc.php (Compressor 2 but concepts apply)
    http://dvdstepbystep.com/fasttrackover.php (General workflow, but you can send from Final Cut without rendering exporting, more for settings)

  • How do I compress .mov and .mpg files

    I have several mpg1video clips at 18.8MB each, how do I compress them into smaller files. I want to e-mail them at about 2-3MB each, and maintain good quality? Power Mac G5 2.3 OSX 10.4.4 My objective is to upload 30 second video commercials and 2-3 minute clips to my web site or e-mail them to various clients. Need help.
    Thanks,
    morris1

    For most users just using a browser other than Safari solves the trouble.
    When I encounter pages that don't show the Pro "pull down" (right end of the controller) I simply Control click on the video window to bring up the contextual menu.

  • How do I compress a 2 min FCP video into 100MB for web upload?

    How do I compress a 2 min FCP video into 100MB for web upload?
    I have FCP v.7 as a part of FCStudio
    OK, this may seem like a stupid question for most of you but I haven't used FCP for years.  I am trying to make and upload a 2 min video to the web and don't know how to turn it into a size of 100MB or less.
    Yes, I realize that I have Compressor but it does not work on my computer for some reason.  I think my laptop is too old for it or something.
    It needs to be in one of these formats and I would like to use the highest quality.  Suggestions needed for this also since this will be my first attempt at an uploaded video.
    .MOV, .WMV, .AVI, .MPG, .3GP, 3G2, .QTL, OR .MP4
    Any help would be wonderful!
    MacBook Pro, OS X Mountain Lion (10.8.3), 750GB HD, 2.2 GHz, 6 GB RAM

    First, let me apologize for the way we were chatting on your thread while waiting.
    Let me summerize what I think we have here:
    1. You have a 2 minute show you want to convert to some codec appropriate for high quality presentation, but under 100MB final filesize.
    2. You feel you don't want to use Compressor or a preset for YouTube.
    3. You're in a hurry.
    The fastest and highest quality method of making this conversion is using Compressor. It is designed to do precisely what you ask. The codec you want is H.264.
    The YouTube preset is being suggested not because we think you're going to upload the clip to that site, but because the YouTube preset is a remarkably easy way to get a HQ H.264 clip with acceptable filesize. I'm staring at a 3:40 clip of 1080p that would knock your socks off and it's 90MB!
    Even on a laptop the conversion is a matter of minutes.
    If you're OK with my arguement, I'll write out a step-by-step proc for you and you can be done with this in time for that primetime show you want to watch.  OK?

  • JPEG Compression quality in Carbon

    I'm writing a Carbon/Quartz application and we are saving JPEG files. However, I can't figure out how to set the compression quality. I'm using kCGImagePropertyJFIFDictionary but it doesn't seem to have an entry for compression. Is there another dictionary I should be using instead?
    thanks

    To answer my own question, taken from stackoverflow.com, the answer is kCGImageDestinationLossyCompressionQuality in the image dictionary, NOT the JFIF dictionary.
    It looks like it's supposed to work for other formats, but it doesn't seem to work for TIFF for me, because TIFF only wants to save as LZW which is lossless...

  • Optimize JPG image size reduction by reduced compression quality vs. reduced pixels?

    I have many images of slides scanned at high res (4800 DPI, maximum pixels 5214x3592).   Although I will be saving these as lossless TIFs, I also wish to make JPGs from them that I wish to be just less than 5 MB in file size.  Aside from cropping, I know I can achieve such a reduction of JPG file size by a combination of saving to lower quality JPG compression or reducing image size.  My question is, what is theoretically or practically better, achieving this mostly by reducing image total pixels or by reducing  JPG compression quality.  Thank you

    Thank you Doug.  The comments on extensive uniform blue sky vs. marked variation in color seem well taken, I'll keep this method of choosing in mind.  My goal is to create a JPG family photo archive of the highest quality images that I can make for future use by non-technical descendants (thus it will supplement the TIF archive that holds the best quality versions of the same images but that may not be usable to novices).  As I cannot anticipate exactly how the JPGs will be used, I just want them to be the best possible, while still being of a size that can be uploaded to, say, Costco (5 MB size limit) for making enlargements. 
    In general, I am often left curious as to how exactly Photoshop carries out its algorithms and how different factors influence the outcome.  So often, one read "just try different techniques and see what looks the best".  But I am always left wondering, what is the theory behind this and has it been systematically studied and worked out and published.  In so many disciplines, such as medicine, the methods of optimization has been evaluated, systematized, and fully described.  I have not yet explored what may be found in technical journals, but I'm sure much of this good stuff must be available somewhere. It would be nice to have a "How Things Work" that actually explains what Photoshop is doing under the hood.
    Thanks again.

  • How do I compress a photo

    How can I compress the size of the photo after I download it?

    The only way to compress a jpeg file is to use an editor that can change the quality level, i.e. jpeg compression, of the image file at the cost of image quality.
    Compressing the jpeg file with the system, i.e. Control (right) - click on it and selecting Compress from the contextual menu does not reduce the file size.
    If you have the photo in an iPhoto library it can be exported via the File ➙ Export ➙ File Export menu option where you can set the Quality level lower so that the file size is reduced.
    The size menu in the screenshot is the image size, i.e. it reduces the number of pixels in the image. The JPEG Quality  menu just affects the file size.

  • How to read device report for HP Deskjet 1510

    Hi HP,
    I can see from the software provided with this printer there is this option to print the device reports.
    Please assist on how to read this report because it consist of unknown coding and stuff. 
    I would appreciate if your side can help me on this coz I assume that we can track our usage through this report.
    If this is not the purpose, perhaps you may suggest any other way to get an understandable usage reports? 
    Regards,
    Nadiya
    This question was solved.
    View Solution.

    Hello Nadiya,
    Welcome to the forums
    I understand you are looking for a usage report. The printer will print a test page and you can see the page count on that page, along with the printer information, such as your serial number, etc. If there is anything else you may mean by "usage" please let me know and I will do my best to help.
    Click this link: Fixing Ink Streaks, Faded Prints, and Other Common Print Quality Problems
    In the guide, look under "Solution six: Print and evaluate a test page and troubleshoot defects" and print a test page.
    Take care,
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

  • How to export best quality gif animations in flash

    how to export best quality gif animations in flash

    GIF is a color restricted format with on/off support for transparency. There's really no settings you can tweak to output a better GIF. You have a drop-down during GIF sequence export to allow transparency, select the amount of colors (up to 256) and you can choose dither to save a little filespace. The only 2 things in there that really matter are dither and amount of colors used to export.
    If your content is very similar (e.g. not a lot of complex gradients/shadows/etc) and is limited in color use turning down the amount of colors used and dithering is your only option.
    Make sure you're exporting the GIF via "Publish Settings" so you get a single animated GIF and not file->export->movie because this creates a separate sequence of GIF images for each frame.

  • How can I improve quality of image when burning a movie to a DVD

    How can I improve quality of image when burning a movie to a DVD?

    What resolution are you using?  If the DVD is to be playable on an ordinary DVD player, only ordinary TV resolution is supported.  You need Blue ray for HD.
    Geoff.

  • How do I compress a hard drive?

    How do I compress a hard drive of its information?  Or can it be done?

    Found the right-click for compressing a folder.

  • HT2506 How do I compress a Preview file when there is not a "save as" option?

    I am trying to compress a jpg or a pdf in preview. I have read the answer: save as, etc. My Preview doesn't have a "save as" option, just "save". Is there another way to compress it?

    Use the Export menu option.
    Choose JPEG and there is a slider for compression (quality).

  • Acrobat 9 Pro - Change Image Compression/Quality w/ Javascript?

    Hello,
    I've got a folder-level script that will merge PDFs by using "insertPages" to add a list of PDFs to a new document. The file size is too large, and I've noticed that if I go into the PDF Optimizer manually and change the Image Settings so the compression quality is "low" for both Color images adn Grayscale images, it brings the file size down to where I need it to be.
    My question is, can I do this in my script somehow? I don't see anything in the Javascript Reference or Acrobat SDK about updating images within document. I'd really like to automate this optimization within my script.
    Has anyone ever done this before?
    Many thanks in advance!    

    Thanks again for your reply!
    Well the output folder could change... and really, it would be most ideal to not even save the single PDFs (although it looks like I might have to). All I need to accomplish is to take a folder of PDFs and merge them into one PDF (but it must be optimized and cropped). I don't need the new, saved versions of the single PDFs. I feel like my "automation" solution to this will end up being more tedious than manually clicking "combine" and merging PDFs that way, and applying the crop settings afterward. Maybe I am making this more difficult than it needs to be? Here is what I'm doing:
    1. I have a folder level script that executes when Acrobat loads whichs adds two menu items. The first opens up the Batch Sequences menu so the user doesn't have to find them.
    2. From here, the user will need to run a batch sequence that will optimize and crop each PDF and save them to an output folder.
    3. Now the user will need to run another batch sequence (and choose the output folder from step 2 as the input folder now) that will collect all the file paths of the optimized PDFs.
    4. Now the user can use my other menu item from step 1 that will execute a folder level script and merge the PDFs by inserting them into a new document.
    5. I can prompt the user here to save the new document somewhere.
    It seems like there should be an easier way to do this. Is it not possible to merge the PDFs in a batch sequence and then use the output folder to save the one new PDF (rather than each of the input PDFs)?

Maybe you are looking for