Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Consolidating jpeg files into one file

  1. #1
    Join Date
    Oct 2008
    Location
    Ottawa Canada
    Beans
    1,208
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Consolidating jpeg files into one file

    Is there a way to consolidate multiple jpeg files into one file? Maybe a pdf file or something similar? CLI and GUI options would be appreciated.
    Last edited by rmcellig; February 3rd, 2013 at 07:08 PM.
    Randy McElligott
    www.mcran.com

    For the best in Jazz, In Transition every Sunday from noon-2pm EST www.chuo.fm

  2. #2
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Consolidating jpeg files into one file

    - Manually - use LibreOffice Impress

    - Automatically - use ImageMagick Convert

    Code:
    convert "*.jpg" output.pdf
    I have used convert before, but not for this task until I tested it now to see that it works. I found it via this link

    http://ubuntuforums.org/showthread.php?t=1480100

  3. #3
    Join Date
    Oct 2008
    Location
    Ottawa Canada
    Beans
    1,208
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Consolidating jpeg files into one file

    Excellent. Works great! One thing though. My jpgs have specific names. When they are converted and I open the pdf file, the jpg's are renamed 1,2,3,4 etc.... Is there a way to rename them or retain the original names of the jpg files?
    Randy McElligott
    www.mcran.com

    For the best in Jazz, In Transition every Sunday from noon-2pm EST www.chuo.fm

  4. #4
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Consolidating jpeg files into one file

    Quote Originally Posted by rmcellig View Post
    Excellent. Works great! One thing though. My jpgs have specific names. When they are converted and I open the pdf file, the jpg's are renamed 1,2,3,4 etc.... Is there a way to rename them or retain the original names of the jpg files?
    I think you are referring to the page numbers. I don't know an easy way to keep the file names. You can do it manually, or you could let convert write the file names into the images before they are put into the pdf file.

    - How many files are there?
    - Why are you doing this?

  5. #5
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Consolidating jpeg files into one file

    You can use 'Annotating Images' in ImageMagick (and for example store the images temporarily with a fixed frame size) and then merge them into a pdf file.

    http://www.imagemagick.org/Usage/annotating/

    Another way would be to make a tarball. Then the jpeg files are stored with their names.

  6. #6
    Join Date
    Oct 2008
    Location
    Ottawa Canada
    Beans
    1,208
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Consolidating jpeg files into one file

    Maybe I am using the wrong tool and going about this the wrong way. Here is further clarification:

    I host a weekly radio show. When I digitized some of my LP's, I also scanned in the notes on th back of the album jackets and saved them as seperate jpg files. When I get to the studio I find the only way I can view these files is to open them seperately in Firefox. What a pain. I have about 13 jpg files.

    I have to find a way where I can open only one document and have the jpg's or notes there. I need to know what the jpg files refer to, so for example if I am playing something from an LP called Singers, I need to have the jpg file say Singers so I know what I am looking for. This works in Firefox because the names of the jpg files reflect the names of the albums. Make sense?

    Let me know. Thanks!!

    At the station they use XP Pro on their computer.
    Randy McElligott
    www.mcran.com

    For the best in Jazz, In Transition every Sunday from noon-2pm EST www.chuo.fm

  7. #7
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Consolidating jpeg files into one file

    There are several photo organizers in the linux world. So if you could use a linux system at the radio station, I would have suggested DigiKam or Shotwell to manage and view your jpeg files if there were hundreds or thousands of them.

    Now it is only 13 jpeg files, which is few enough to manage manually. I would use the default picture viewer in linux and either the default picture viewer (for local pictures) in Windows, or if you are not happy with it, Irfanview (a free windows program). So keep the jpeg files on a USB pendrive, browse with the file brower (Nautilus in linux, Explorer in Windows), and use a picture viewer (these are better for this purpose than Firefox).

    Another option is to make a slide-show with LibreOffice Impress, where you can add whatever texts and links you want at the pictures.

  8. #8
    Join Date
    Oct 2008
    Location
    Ottawa Canada
    Beans
    1,208
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Consolidating jpeg files into one file

    Unfortunately, I can't alter anything on the radio station computer. I tried the photo viewer that they use and it's awful! For me, I think if the files were in a pdf files and the images labelled properly, I would be OK.
    Randy McElligott
    www.mcran.com

    For the best in Jazz, In Transition every Sunday from noon-2pm EST www.chuo.fm

  9. #9
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: Consolidating jpeg files into one file

    Quote Originally Posted by rmcellig View Post
    Unfortunately, I can't alter anything on the radio station computer. I tried the photo viewer that they use and it's awful! For me, I think if the files were in a pdf files and the images labelled properly, I would be OK.
    I would regard it as a slide-show, and create it with pictures and text using LibreOffice Impress (and save it in the open document format). Then I would export it to a pdf file, that you can bring to the radio station.

  10. #10
    Join Date
    Aug 2011
    Location
    52.5° N 6.4° E
    Beans
    6,824
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: Consolidating jpeg files into one file

    There was a similar question three weeks ago: http://ubuntuforums.org/showthread.php?t=2102856 Read post #4.

    A simple script can generate a html file with the images and the filenames as captions. Keep the html file and the images in one directory on a usb stick and you can open it in a web browser.

    Alternatively, you can print this to pdf or use a script to generate a tex file (if you've some experience with them) and turn that into a pdf. It's a bit overkill, but once you have it scripted it's quite convenient.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

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