LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-24-2019, 12:23 PM   #1
sniff
Member
 
Registered: Jan 2003
Location: Durham UK
Distribution: openSUSE/Debian/ubuntu
Posts: 362

Rep: Reputation: 42
Old style JPEG compression


Hello,

I have an old dye sub printer that I would like to use up the paper for... thing is that it takes a memory card and they prints off that. It only seems to understand old style JPEG compression. Is there a way to turn current jpgs back into the old style compression?

Thanks, Phil
 
Old 03-24-2019, 12:43 PM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,887

Rep: Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317Reputation: 7317
most probably when you click on save as (or export) you can specify the format. But I have no idea what formats are supported by that printer. Probably tiff or raw or some other format would work. (please specify at least the type of that printer or the required format)
 
Old 03-24-2019, 12:49 PM   #3
sniff
Member
 
Registered: Jan 2003
Location: Durham UK
Distribution: openSUSE/Debian/ubuntu
Posts: 362

Original Poster
Rep: Reputation: 42
Erm like I said, it reads JPEG/JPG files with the old style compression. JEPG change the compression system not long ago and it doesn't read the new compression format. So selecting save or export as JPG doesn't work as todays software uses the new compression standard.

Its an Olympus P200.
 
Old 03-24-2019, 12:59 PM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
have you tried with GIMP? it has loads of options for exporting jpg.
i recently accidentally checked "arithmetic encoding" or some such and my image viewers couldn't see the resulting files. maybe that's what you're talking about.
 
Old 03-24-2019, 01:03 PM   #5
sniff
Member
 
Registered: Jan 2003
Location: Durham UK
Distribution: openSUSE/Debian/ubuntu
Posts: 362

Original Poster
Rep: Reputation: 42
Nah, I am pretty sure it's not the encoding, files out of an old Powershot G5 from circa 2005 use Huffman encoding and they print. Something the same size and res from Gimp with Huffman encoding doesn't work.

Might be something else in GIMP, I haven't tried every possible combination.
Some other bit of encoding.

Maybe if I get GIMP from 2005 going....
 
Old 03-25-2019, 09:29 AM   #6
Beryllos
Member
 
Registered: Apr 2013
Location: Massachusetts
Distribution: Debian
Posts: 529

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
I don't know, but you might be able to get somewhere with the ImageMagick suite of tools, and specifically identify and convert.

Online resources about these tools:
https://imagemagick.org/script/identify.php
https://imagemagick.org/script/convert.php
http://www.imagemagick.org/Usage/formats/#jpg

Try identify --verbose on one file that works, and one that does not. The output is lengthy, so you may wish to redirect the output to files and compare them like I did here:
Code:
# image from an older camera
identify -verbose IMG_058.jpg > temp1
# image exported from gimp
identify -verbose AirCanada.jpg > temp2
diff temp1 temp2
Even the diff will be lengthy. Here is one difference, as an example:
Code:
<   Interlace: None
---
>   Interlace: JPEG
I have no idea whether your printer cares about interlace, but it sounds important.

The third link I listed above gives some clues about how to change the JPG format. Carrying my example a bit further, I will change the interlace mode of the newer file:
Code:
convert AirCanada.jpg -define jpeg:interlace=none AirCanada-no-interlace.jpg
and it's done. The image looks the same. The file size is slightly different.

If it's not interlace, it's something else. See what other differences there are.

And good luck!

Last edited by Beryllos; 03-25-2019 at 09:37 AM.
 
2 members found this post helpful.
Old 03-25-2019, 03:24 PM   #7
sniff
Member
 
Registered: Jan 2003
Location: Durham UK
Distribution: openSUSE/Debian/ubuntu
Posts: 362

Original Poster
Rep: Reputation: 42
Ooo this looks promising. I can't check until later in the week but I will let you know! Cheers.
 
Old 03-29-2019, 03:44 PM   #8
sniff
Member
 
Registered: Jan 2003
Location: Durham UK
Distribution: openSUSE/Debian/ubuntu
Posts: 362

Original Poster
Rep: Reputation: 42
Hi all,

Figured this out, in GIMP 'Progressive' & 'Optimise' needed to be un-checked and then the printer works!

Thanks everyone.
 
Old 03-29-2019, 03:48 PM   #9
Beryllos
Member
 
Registered: Apr 2013
Location: Massachusetts
Distribution: Debian
Posts: 529

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
Great!
 
Old 03-29-2019, 03:57 PM   #10
sniff
Member
 
Registered: Jan 2003
Location: Durham UK
Distribution: openSUSE/Debian/ubuntu
Posts: 362

Original Poster
Rep: Reputation: 42
I am pleased as I want to use the printer for an art project and bought a load of old paper of eBay!

Didn't want to have to buy an old camera too!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Libjpeg 9 improves lossless JPEG compression LXer Syndicated Linux News 0 01-14-2013 10:10 PM
[SOLVED] retrieving jpeg files from BkUp copy yields:ERR INTERPRETING JPEG; file not jpeg, drmjh Linux - General 7 10-03-2010 08:13 AM
Slax with SquashFS-4 new compression algorithm and layered compression ratios? lincaptainhenryjbrown Linux - Software 2 06-19-2009 05:29 PM
usb webcam with build-in jpeg compression barunparichha Linux - Hardware 3 01-02-2008 04:31 AM
how to change mandrake style menu to kde style menu msalimane Mandriva 1 12-07-2004 01:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration