LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-30-2010, 12:26 PM   #1
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Need program: compile jpeg into single file, like a book, and maintain quality


I've been trying to find a way to take a bunch of jpeg images and while maintaining their quality (no loss at all) compile them in such a way as to make one coherent file. Maybe something like a pdf, but while maintaining quality. I've tried converting to pdf and djvu, but the quality is always reduced, but if you know of a way to preserve quality, I'll use it.

An alternative is an image viewer that can look inside archives, so I just make a zip or tgz of the images and then use the image viewer to access them. I've tried a few, but they are ancient, and they don't compile or work.
 
Old 03-30-2010, 12:33 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
Most of the programs you use for conversion will let you specify either a compression level or alternately a quality level. Try setting it at the highest quality or least compression available.
 
Old 03-30-2010, 12:39 PM   #3
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
convert -append

Check this out:

Stack images one on top of the next vertically:
Code:
Shell$ convert -append image.jpg image2.jpg image3.jpg image4.jpg new_big_image.jpg
To connect them side by side, use +append instead of -append

Now, to view them in a handy way, use `feh` (which allows easy up/down of the image-strip with the mouse button, and maybe keyboard too, but I didn't try it).

See here for details & much more neat stuff to do with images:
http://www.imagemagick.org/script/co...1mkhj44#append
Sasha
 
Old 03-30-2010, 12:42 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
How about something like Scribus or even OOo? I think that page layout programs typically preserve image quality. (But I would have assumed the same was possible with PDF)
 
Old 03-30-2010, 02:02 PM   #5
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928

Original Poster
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Thanks for the suggestions, so far the best thing I found was just to zip them up and use a .cbz viewer to open them, works great, is fast, no loss in quality.

@ GrapefruiTgirl: That would be an option, but unfortunately these images are rather large and if I concatenate them it gets harder to open them, and harder to scroll across them and zoom and stuff.
 
Old 03-30-2010, 02:21 PM   #6
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Quote:
Originally Posted by H_TeXMeX_H View Post
..these images are rather large and if I concatenate them it gets harder to open them, and harder to scroll across them and zoom and stuff.
I can definitely understand how that might become a problem, depending on number of images and size of images, and especially if the machine is undersized for the job of viewing them.

Before posting, I tested it out by tacking together 5 dual-monitor wallpapers (3360x1050) into a strip, and found no trouble opening and navigating it, but again, I can definitely see how this might not be ideal in some cases.

In any event, I'm glad you have found a working solution.
 
Old 03-30-2010, 05:17 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
if you do not want a lose of data( quality ) then USE A LOSSLESS format .
Like png it is a lossless compressed ( uses gzip) format

jpg's are a pet peeve of mine -- They should be illegal!!!!

Last edited by John VV; 03-30-2010 at 05:18 PM.
 
Old 03-31-2010, 04:26 AM   #8
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928

Original Poster
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Quote:
Originally Posted by John VV View Post
if you do not want a lose of data( quality ) then USE A LOSSLESS format .
Like png it is a lossless compressed ( uses gzip) format

jpg's are a pet peeve of mine -- They should be illegal!!!!
Yes, yes, I know, unfortunately most images on the net are jpeg ... I don't think converting these to png now will improve quality that has already been lost.
 
Old 03-31-2010, 05:27 PM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
now will improve quality that has already been lost.

no but i do "try" to put back in the "lost " data

that is a fun job , ha,ha,ha,
 
Old 04-01-2010, 06:29 AM   #10
devnull10
Member
 
Registered: Jan 2010
Location: Lancashire
Distribution: Slackware Stable
Posts: 572

Rep: Reputation: 120Reputation: 120
Have you tried using "montage" from the ImageMagick set of tools?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Program to easily maintain hardware and applications? UbrInKid Linux - Newbie 2 11-28-2009 08:01 AM
MJPEG movie to JPEG without quality loss danielsbrewer Linux - General 6 07-08-2008 07:48 AM
Compile Program with shared object file Nishant Desai Programming 1 03-15-2007 12:01 PM
First c++ program with .h file won't compile necrolin Programming 2 03-20-2006 07:24 AM
How to compile a C program in Glade which is included the <pcap.h> header file. swaviswa Programming 0 03-21-2004 07:47 AM

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

All times are GMT -5. The time now is 08:23 PM.

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