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. QImage reduce color to nearest indexed palette
Forum Updated to NodeBB v4.3 + New Features

QImage reduce color to nearest indexed palette

Scheduled Pinned Locked Moved Unsolved General and Desktop
22 Posts 5 Posters 7.2k Views 2 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.
  • Shadowblitz16S Shadowblitz16

    hmm its not doing it for me.. for example I gave it an image and specified a palette size of 4.
    after it was done processing it just recolored parts of the image..

    EDIT: now it doesn't look like its doing anything.

    EDIT2: ok so when I open the file browser to load an image, all my images are listed as paint.net images when they are not.
    I think its getting the file extension confused with the default program that opens the file.

    kshegunovK Offline
    kshegunovK Offline
    kshegunov
    Moderators
    wrote on last edited by
    #21

    @Shadowblitz16 said in QImage reduce color to nearest indexed palette:

    hmm its not doing it for me.. for example I gave it an image and specified a palette size of 4.
    after it was done processing it just recolored parts of the image..

    What do you suppose an index based image is to look like?
    Open any image, put it in photoshop, gimp or w/e make it index-based with a palette size of 4 and observe what happens.

    Read and abide by the Qt Code of Conduct

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

      Hi
      Unless you use Dithering, a palette of 4 color will destroy most images :)
      ![alt text](0_1493897430493_upload-216d44af-ee00-457b-b63b-636f672371d1 image url)

      1 Reply Last reply
      0

      • Login

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