JPEG, Größe, Qualität



  • Hallo

    Kennt jemand eine Bibliothek/Funktion oder sonstwas mit dem man die Größe einer JPEG-Datei und evt. noch den Kompressionsfaktor ändern kann ?

    Also beispielsweise von 1600*1200 auf 400*300 Pixel und die Kompression dazu auf JPEG 75 oder so was ?

    Bin für jeden Tipp sehr dankbar. 🙂



  • Hallo,
    schau mal bei http://openil.sourceforge.net/ nach.
    Oder nach dem Gdi+ in der MSDN.
    Turbobrain



  • Sieht gut aus, danke 🙂



  • Ok, Größe ist damit hinzubekommen.
    Aber weiß auch jemand wie man damit die Qualität/Kompression von JPEGs einstellen kann ?
    Kann leider nix dazu finden.

    Danke 🙂



  • Immer noch das gleiche Problem mit der Kompression, oder kennt jemand ganz eine andere Lib ???





  • Hm, Größe ändern ist damit aber nicht, oder ?
    Ich kann leider nix derartiges finden.



  • schau sie dir in ruhe an. soll eine der besten sein.



  • Werds probieren, glaub auch gerne, dass das eine der besten ist. Aber ich hab das schonmal probiert, ich kann damit nicht so wirklich umgehen, ich krieg die Funktionen schonmal gar nicht in mein Prog hinein.

    Using CxImage in your projects
    
    The CxImgLib.dsw workspace shows the libraries required to build an application (demo.exe) including almost all the features and the formats available in CxImage. You must compile all the libraries before you can link the final application.
    In the same workspace you'll find the projects to build different libraries and applications:
    CxImage : cximage.lib - static library 
    CxImageCrtDll : cximagecrt.dll - DLL not using mfc 
    CxImageMfcDll : cximage.dll - DLL using mfc 
    Demo : demo.exe - program linked with cximage.lib and the C libraries 
    DemoDll : demodll.exe - program linked with cximagecrt.dll 
    j2k,jasper,jbig,jpeg,png,tiff,zlib : static C libraries 
    
    Building the projects will need some minutes to complete (the intermediate files occupy 60MB!). When everything is done, select the demo project and launch the application.
    CxImgLib.dsw
    
    To use CxImage in your project, you must edit these settings: 
    
    Project Settings
     |- C/C++
     |   |- Code Generation
     |   |   |- Use run-time library : Multithreaded DLL (must be the same for 
     |   |   |  all the linked libraries)
     |   |   |- Struct member alignment : must be the same for all the linked 
     |   |   |  libraries
     |   |- Precompiled headers : not using precompiled headers
     |   |- Preprocessor
     |       |- Additional Include Directories:  ..\cximage
     |- Link
        |- General
            |- Object/library modules: ../png/Debug/png.lib 
                                       ../jpeg/Debug/jpeg.lib 
                                       ../zlib/Debug/zlib.lib 
                                       ../tiff/Debug/tiff.lib 
                                        ../cximage/Debug/cximage.lib  ...
    

    Super die Hälfte davon find ich gar nicht. 🙄
    btw. muss ich das alles machen ?


Anmelden zum Antworten