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

Thread: Convert .png to .jpg with multiples photos how?

  1. #1
    Join Date
    Nov 2009
    Location
    KCMO
    Beans
    201
    Distro
    Ubuntu 12.04 Precise Pangolin

    Convert .png to .jpg with multiples photos how?

    I'm using digiKam and it has batch processes but not one for converting .png to .jpg (that I see). Does anyone know of a way to convert multiple photos (consecutive and nonconsecutive)?

  2. #2
    Join Date
    Sep 2005
    Location
    Los Baños, Laguna
    Beans
    396
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Convert .png to .jpg with multiples photos how?

    I use mogrify for stuff like this.

    Code:
    man mogrify
    as an example

    Code:
    mogrify -format jpg *.png
    See ​​http://www.imagemagick.org/script/mogrify.php for further information.
    Earlycj5

  3. #3
    Join Date
    Apr 2005
    Location
    Finland/UK
    Beans
    Hidden!
    Distro
    Ubuntu 14.10 Utopic Unicorn

    Re: Convert .png to .jpg with multiples photos how?

    I agree that Imagemagick is a great way to do this. (of course you need to install it, which the above post forgot to mention... )

    If you prefer a graphical tool instead, you should try Phatch, nice & simple tool for batch processing of images. It doesn't pack all the power of Imagemagick but includes all the most commonly used stuff.

    ..and there's always the Nautilus Image Converter, which adds basic image conversion tools to right-click menu of your file manager.

    All these are of course available from the repositories.

    edit: also if you go for Imagemagick, be careful with mogrify. It will overwrite the original images. Use convert instead if you want to keep the originals intact and instead wish Imagemagick to create new images for you.
    Last edited by mcduck; November 9th, 2010 at 11:02 PM.

  4. #4
    Join Date
    Sep 2005
    Location
    Los Baños, Laguna
    Beans
    396
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Convert .png to .jpg with multiples photos how?

    Quote Originally Posted by mcduck View Post
    I agree that Imagemagick is a great way to do this. (of course you need to install it, which the above post forgot to mention... )
    I didn't mention it because I wasn't aware that it wasn't installed by default??? It's on all of my machines, maybe I installed it somewhere along the way I guess.

    Code:
    sudo apt-get install imagemagick
    Since the post that followed mine forgot to mention how.
    Earlycj5

  5. #5
    Join Date
    Apr 2005
    Location
    Finland/UK
    Beans
    Hidden!
    Distro
    Ubuntu 14.10 Utopic Unicorn

    Re: Convert .png to .jpg with multiples photos how?

    Quote Originally Posted by earlycj5 View Post
    I didn't mention it because I wasn't aware that it wasn't installed by default??? It's on all of my machines, maybe I installed it somewhere along the way I guess.

    Code:
    sudo apt-get install imagemagick
    Since the post that followed mine forgot to mention how.
    I guess that makes us even then

    It's not included in the default install, but it's very commonly used and many other apps will bring it along as a dependency so it probably ended on your system that way.

  6. #6
    Join Date
    Nov 2009
    Location
    KCMO
    Beans
    201
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Convert .png to .jpg with multiples photos how?

    Thanks for the variety of options! I'll get right on checking them out. I'm also going to keep playing in digiKam...I'm sure there's a way!

  7. #7
    Join Date
    Aug 2010
    Location
    Philippines
    Beans
    143
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Convert .png to .jpg with multiples photos how?

    Hello guys. I actually made a new post here since my question was specifically about scripting. However as a couple of you sound pretty knowledgeable regarding command line image editing I wanted to throw this question out to you.

    The script I am working on (to rotate images) is using jhead and jpegtran for the command line stuff. The reason I am using two different command line image editors is I can't seem to find one that does what I'm looking for well.

    Ideally I would just like a command line program that did one thing well "Rotate Images" but with the additional consideration of NOT changing the modified date/time stamp of the .jpg in question.

    Thank you for any help you might be able to give.
    ~ It has recently been discovered that research causes cancer in rats. ~

    BTW; I'm using Linux Mint (based on Precise) with MATE so modify Q/A accordingly if applicable.

  8. #8
    Join Date
    Nov 2010
    Beans
    20

    Re: Convert .png to .jpg with multiples photos how?

    Hey take a look at this software,
    http://www.bestsoftware4download.com...-zcvfhpdg.html

  9. #9
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    9,033
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: Convert .png to .jpg with multiples photos how?

    Here's a scriptable way to restore the timestamp on a file:

    Code:
    FILE='somefile.png'
    TS=$(ls -l $FILE --full-time | awk '{print $6 " " $7 " " $8}')
    mogrify -rotate 90 $FILE
    touch $FILE --time="$TS"
    This obtains the extended timestamp on a file and stores it in an environment variable. At the end the file is "touched" with the old timestamp.

  10. #10
    Join Date
    Apr 2009
    Location
    United States
    Beans
    308
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Convert .png to .jpg with multiples photos how?

    Phatch: Photo Batch Editor. Love this thing!
    not only will it convert but it can crop, scale, create
    alpha channels, colorize, etc...etc...on a photo batch.
    Last edited by ngrieb; November 22nd, 2010 at 08:21 AM.

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
  •