Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Reduce the byte size of an image
Forum Updated to NodeBB v4.3 + New Features

Reduce the byte size of an image

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 1.3k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    redstoneleo
    wrote on last edited by
    #1

    I have many 1423x800 bmp images with byte size bigger than 3M, now I want to change the format of them to jpg and reduce the byte size of each image not bigger than 256K, but also want to keep the best image quality in such case, so any good ideas on reducing the byte size of the image here?

    P.S. The goal of doing these image operation is that I am going to customize the logon screen wallpaper of Windows 7

    ? 1 Reply Last reply
    0
    • R redstoneleo

      I have many 1423x800 bmp images with byte size bigger than 3M, now I want to change the format of them to jpg and reduce the byte size of each image not bigger than 256K, but also want to keep the best image quality in such case, so any good ideas on reducing the byte size of the image here?

      P.S. The goal of doing these image operation is that I am going to customize the logon screen wallpaper of Windows 7

      ? Offline
      ? Offline
      A Former User
      wrote on last edited by A Former User
      #2

      Hi! How is this related to Qt?

      Edit: There are tools for this, e.g. "ImageMagick". BTW: You asked nearly the same question about a year ago, see here.

      1 Reply Last reply
      1
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @Wieland said:

        ImageMagick

        Seems to be the perfect choice
        a 3Mb bmp should become around 200k png

        http://www.imagemagick.org/script/mogrify.php

        mogrify -format jpg *.png

        1 Reply Last reply
        0
        • R Offline
          R Offline
          redstoneleo
          wrote on last edited by
          #4

          img.save("myfile.bmp", "jpg", 50) seems ok

          http://doc.qt.io/qt-5/qimage.html#save

          1 Reply Last reply
          1

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved