Results 1 to 24 of 24

Thread: jpegoptim 1.2.4 for Windows

  1. #1
    Member nikkho's Avatar
    Join Date
    Jul 2011
    Location
    Spain
    Posts
    542
    Thanks
    214
    Thanked 163 Times in 104 Posts

    jpegoptim 1.2.4 for Windows

    After reading the forum topic at http://encode.ru/threads/936-Suggest...ic-compression I noticed that jpegoptim is at version 1.2.4 (http://www.kokkonen.net/tjko/projects.html), while the latest Windows build I have been able to find is 1.2.2 (http://sourceforge.net/projects/jpeg...m-1.2.2-win32/).

    I tried to build 1.2.4, and even if compiled and linked fine against supplied libjpeg6b, it did not work for me (always an error after parsing JPEG markers), tried to build with the original 1.2.2 windows sources, and the same problem. The same happened if moving forward to libjpeg8d, in both jpegoptim 1.2.2. and 1.2.4.

    Has anyone been able to compile it, and can post the updated binaries?

  2. #2
    Member nikkho's Avatar
    Join Date
    Jul 2011
    Location
    Spain
    Posts
    542
    Thanks
    214
    Thanked 163 Times in 104 Posts
    Just in case any one is interested, here is the custom build of jpegoptim 1.2.4 for Windows.

    It has been a non trivial task, merging the changes from [COLOR=#0000FF ]http://sourceforge.net/projects/jpegoptim/[/COLOR] to the latest codebase, so in order to keep it clean, it was with ifdefs

    I have compiled it with latest lijpeg 8d, and is available for Win32 and Win64.

    I have sent the updated codebase to Timo Kokkonen nevertheless, hope it will be integrated in the future.

    Sources and executables are attached.
    Attached Files Attached Files

  3. #3
    Member
    Join Date
    Jul 2006
    Location
    US
    Posts
    39
    Thanks
    26
    Thanked 1 Time in 1 Post
    Quote Originally Posted by nikkho View Post
    I have compiled it with latest lijpeg 8d, and is available for Win32 and Win64.
    Thanks. I'm running the x64 version on my W7/64 system and it's working fine.

  4. #4
    Member nikkho's Avatar
    Join Date
    Jul 2011
    Location
    Spain
    Posts
    542
    Thanks
    214
    Thanked 163 Times in 104 Posts
    Quote Originally Posted by spark View Post
    Thanks. I'm running the x64 version on my W7/64 system and it's working fine.
    Nice! It is a pleasure it has been useful for you too.

  5. #5
    Member Jaff's Avatar
    Join Date
    Oct 2012
    Location
    Dracula's country
    Posts
    100
    Thanks
    112
    Thanked 20 Times in 16 Posts
    It fails to start on my computer (WinXP/SP2). Processed with PETrim?

    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	jpegoptim.png 
Views:	6801 
Size:	6.3 KB 
ID:	2044  

  6. #6
    Member nikkho's Avatar
    Join Date
    Jul 2011
    Location
    Spain
    Posts
    542
    Thanks
    214
    Thanked 163 Times in 104 Posts
    Thank you for the report Jaff.
    Unfortunatelly current Visual C++ 2012 version, is not able to target Windows XP or lower. It is stated that Microsoft will release an update soon to fix this problem.

    Regards.

    Quote Originally Posted by Jaff View Post
    It fails to start on my computer (WinXP/SP2). Processed with PETrim?


  7. #7
    Expert
    Matt Mahoney's Avatar
    Join Date
    May 2008
    Location
    Melbourne, Florida, USA
    Posts
    3,255
    Thanks
    306
    Thanked 778 Times in 485 Posts
    Microsoft's not so subtle push to get the 40% of users still running XP to upgrade...

  8. #8
    Member m^2's Avatar
    Join Date
    Sep 2008
    Location
    Ślůnsk, PL
    Posts
    1,612
    Thanks
    30
    Thanked 65 Times in 47 Posts
    Quote Originally Posted by Matt Mahoney View Post
    Microsoft's not so subtle push to get the 40% of users still running XP to upgrade...
    I think you meant "update".

  9. #9
    Tester
    Black_Fox's Avatar
    Join Date
    May 2008
    Location
    [CZE] Czechia
    Posts
    471
    Thanks
    26
    Thanked 9 Times in 8 Posts
    Update would mean to just run Windows Update, wouldn't it? Upgrading is not limited to HW.
    I am... Black_Fox... my discontinued benchmark
    "No one involved in computers would ever say that a certain amount of memory is enough for all time? I keep bumping into that silly quotation attributed to me that says 640K of memory is enough. There's never a citation; the quotation just floats like a rumor, repeated again and again." -- Bill Gates

  10. #10
    Member Jaff's Avatar
    Join Date
    Oct 2012
    Location
    Dracula's country
    Posts
    100
    Thanks
    112
    Thanked 20 Times in 16 Posts
    Offtopic: I don't need any "updates" of XP including SP3 or to install Micro$hit Win Vista/7 on a hardware that cannot handle it. Also don't need any visual improvements of OS sacrifying resources for that.
    Back to topic: Is any chance to compile it with an alternative to Visual C++ 2012 or VS10 wich supports WinXP?
    Edit: some beta version with libjpeg v9 (planned for release in January 2013)? http://www.infai.org/jpeg/
    Last edited by Jaff; 17th October 2012 at 13:36.

  11. #11
    Member m^2's Avatar
    Join Date
    Sep 2008
    Location
    Ślůnsk, PL
    Posts
    1,612
    Thanks
    30
    Thanked 65 Times in 47 Posts
    Quote Originally Posted by Black_Fox View Post
    Update would mean to just run Windows Update, wouldn't it? Upgrading is not limited to HW.
    Quote Originally Posted by Merriam-Webster
    Upgrade:
    transitive verb
    : to raise or improve the grade of: as
    a : to improve (livestock) by use of purebred sires
    b : to advance to a job requiring a higher level of skill especially as part of a training program
    c : to raise the quality of
    d : to raise the classification and usually the price of without improving the quality
    e : to extend the usefulness of (as a device)
    f : to assign a less serious status to <upgraded the patient's condition to good>
    intransitive verb
    : to improve or replace especially software or a device for increased usefulness
    Change from XP to Vista is neither of the above for many users and I believe it's especially true for people who still run XP.
    Update doesn't suggest improvement and therefore is universally correct.

  12. #12
    Tester
    Black_Fox's Avatar
    Join Date
    May 2008
    Location
    [CZE] Czechia
    Posts
    471
    Thanks
    26
    Thanked 9 Times in 8 Posts
    @m^2: then it is "d : to raise the classification and usually the price of without improving the quality" But yeah, even though I meant more of 7 instead of Vista, you're right.

    @Jaff:
    Quote Originally Posted by Wikipedia
    However, on June 15, 2012, a blog post on the VC++ Team blog announced that based on customer feedback, Microsoft would re-introduce native support for Windows XP targets (though not for XP as a development platform) in a version of Visual C++ to be released later in the fall of 2012.
    Last edited by Black_Fox; 17th October 2012 at 21:23.
    I am... Black_Fox... my discontinued benchmark
    "No one involved in computers would ever say that a certain amount of memory is enough for all time? I keep bumping into that silly quotation attributed to me that says 640K of memory is enough. There's never a citation; the quotation just floats like a rumor, repeated again and again." -- Bill Gates

  13. #13
    Member Jaff's Avatar
    Join Date
    Oct 2012
    Location
    Dracula's country
    Posts
    100
    Thanks
    112
    Thanked 20 Times in 16 Posts
    Anyway, if jpegoptim doesn't rely on any dependencies of system it might be compiled for DOS too. After all is a command line tool, right?
    P.S. MS lied about support for XP until 2014
    http://support.microsoft.com/lifecyc...ilter=FilterNO

  14. #14
    Member nikkho's Avatar
    Join Date
    Jul 2011
    Location
    Spain
    Posts
    542
    Thanks
    214
    Thanked 163 Times in 104 Posts
    I am very sorry I do not have Visual C++ 2010 installed anymore.
    My package includes patched source files, and solution, so it should not be complicated to build it some one has it.
    I also contacted original JPEGOptim developer in order to integrate my source changes in the trunk, but no luck...


    Quote Originally Posted by Jaff View Post
    Offtopic: I don't need any "updates" of XP including SP3 or to install Micro$hit Win Vista/7 on a hardware that cannot handle it. Also don't need any visual improvements of OS sacrifying resources for that.
    Back to topic: Is any chance to compile it with an alternative to Visual C++ 2012 or VS10 wich supports WinXP?
    Edit: some beta version with libjpeg v9 (planned for release in January 2013)? http://www.infai.org/jpeg/

  15. #15
    Member Karhunen's Avatar
    Join Date
    Dec 2011
    Location
    USA
    Posts
    91
    Thanks
    2
    Thanked 1 Time in 1 Post
    For the 32bit exe I have its CRC32 is 2DACC808 running on Win7 32bit, and 7zip summary attachment identifies as normal PE (PNG atached)Click image for larger version. 

Name:	jpegoptim.png 
Views:	555 
Size:	27.6 KB 
ID:	2050
    Last edited by Karhunen; 24th October 2012 at 20:02. Reason: windoze version

  16. #16
    Member nikkho's Avatar
    Join Date
    Jul 2011
    Location
    Spain
    Posts
    542
    Thanks
    214
    Thanked 163 Times in 104 Posts
    Quote Originally Posted by Karhunen View Post
    For the 32bit exe I have its CRC32 is 2DACC808 running on Win7 32bit, and 7zip summary attachment identifies as normal PE (PNG atached)Click image for larger version. 

Name:	jpegoptim.png 
Views:	555 
Size:	27.6 KB 
ID:	2050
    Right. As I said my binaries work fine on Vista, 7 and 8. They even do on 2003, 2008 and 2012, but not in XP due to some missing API from the Visual C++ 2012 C library that will be fixed in a future VC++ update.
    On the 64 bit side, they work on XP, since it is based on the 2003 kernel.

  17. #17
    Member
    Join Date
    Nov 2012
    Location
    Italy
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Arrow xp version

    Hi, if is of some use here is a win32, xp compatible, Jpegeoptim 1.2.4.
    Let me know if is working well.

    NB: tnx to nikkho for sources.
    Attached Files Attached Files
    Last edited by NaN; 9th November 2012 at 15:47.

  18. #18
    Member Jaff's Avatar
    Join Date
    Oct 2012
    Location
    Dracula's country
    Posts
    100
    Thanks
    112
    Thanked 20 Times in 16 Posts
    After copying msvcrt100d.dll to .exe folder it works! Thank you!

  19. #19
    Member nikkho's Avatar
    Join Date
    Jul 2011
    Location
    Spain
    Posts
    542
    Thanks
    214
    Thanked 163 Times in 104 Posts
    As promised, Visual C++ 2012 Update 1 is finally here. That is why I have been able to compile jpegoptim 1.2.4 again with that version, enabling Windows XP compatibility.

    It is included as a part of FileOptimizer (http://encode.ru/threads/1589-FileOp...ll=1#post31577), but I can post here Win32 as well as Win64 binaries if required.

    As a difference with the NaN build, it is statically linked so no external Visual C++ DLL are needed.

  20. #20
    Member Jaff's Avatar
    Join Date
    Oct 2012
    Location
    Dracula's country
    Posts
    100
    Thanks
    112
    Thanked 20 Times in 16 Posts
    libjpeg v9 released 2 days ago. Any updated version? http://www.infai.org/jpeg/

  21. #21
    Member
    Join Date
    May 2008
    Location
    HK
    Posts
    160
    Thanks
    4
    Thanked 25 Times in 15 Posts
    I always wonder if there are differences between jpegoptim and jpegtrans -optimize.

  22. #22
    Member nikkho's Avatar
    Join Date
    Jul 2011
    Location
    Spain
    Posts
    542
    Thanks
    214
    Thanked 163 Times in 104 Posts
    Quote Originally Posted by roytam1 View Post
    I always wonder if there are differences between jpegoptim and jpegtrans -optimize.
    I think so.

  23. #23
    Member
    Join Date
    Apr 2012
    Location
    Stuttgart
    Posts
    437
    Thanks
    1
    Thanked 96 Times in 57 Posts
    Quote Originally Posted by Jaff View Post
    libjpeg v9 released 2 days ago. Any updated version? http://www.infai.org/jpeg/
    Note that JPEG9 has "modes" that are no longer JPEG. For example, -rgb1 generates images that are not conforming to the JPEG specifications. Just stay away from this software, the author just puts in all the stuff he likes, generating formats that do not comply to anything. Please don't be confused by the name, this software is not assoicated to JPEG at all, it's a software based on the IJG core, that's all.

  24. #24
    Member nikkho's Avatar
    Join Date
    Jul 2011
    Location
    Spain
    Posts
    542
    Thanks
    214
    Thanked 163 Times in 104 Posts
    Quote Originally Posted by thorfdbg View Post
    Note that JPEG9 has "modes" that are no longer JPEG. For example, -rgb1 generates images that are not conforming to the JPEG specifications. Just stay away from this software, the author just puts in all the stuff he likes, generating formats that do not comply to anything. Please don't be confused by the name, this software is not assoicated to JPEG at all, it's a software based on the IJG core, that's all.
    I have just updated it to latest 1.3.0 codebase, and compiled with libjpeg 9.
    Attached Files Attached Files

Similar Threads

  1. command-line calculator for Windows?
    By Alexander Rhatushnyak in forum The Off-Topic Lounge
    Replies: 5
    Last Post: 30th January 2012, 00:40
  2. Non Windows or Linux compressors
    By Earl Colby Pottinger in forum Data Compression
    Replies: 6
    Last Post: 8th April 2010, 16:26
  3. GCC 4.4.1 for Windows
    By Bulat Ziganshin in forum The Off-Topic Lounge
    Replies: 1
    Last Post: 16th January 2010, 00:39
  4. Directory scanning in windows
    By Shelwien in forum The Off-Topic Lounge
    Replies: 2
    Last Post: 26th November 2009, 14:49
  5. I cannot find jpegoptim win32 build
    By SvenBent in forum Forum Archive
    Replies: 2
    Last Post: 30th November 2007, 23:41

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •