Giter Site home page Giter Site logo

Comments (13)

kopaka1822 avatar kopaka1822 commented on June 27, 2024 1

This is now included in the latest official release

from imageviewer.

kopaka1822 avatar kopaka1822 commented on June 27, 2024

Hi,
so I thought about this a little bit.
If I implement a dropdown, I would add this to the menu bar via View->Pixel Display: Channels (with your proposed dropdown).
In this case, the image will be displayed with all colors, but the status bar will only show the selected channels.

An alternative I thought of would be to automatically detect if the image is grayscale (I already check for an alpha channel anyways). In the case of a grayscale image I could only display a single number in the status bar (This would be for the r(), g(), b() cases).

*Let me know what you prefer

from imageviewer.

cityrobo avatar cityrobo commented on June 27, 2024

maybe another example would be good:

image

Top left is the source image that has all kinds of information stored in the RGBA channels.

I'm currently using the equations feature to separate them, but I would like to have a full image display toggle that basically just hides all the other channels and only displays one channel as a greyscale image.

in Oculante you can do this with this drop down menu.
image
image

Something like that on the bottom bar would be really neat to have for me.
image

And as I mentioned, your program is the first one to accurately display the file types I work with without having to convert them first, and I really like the equations and comparison features your program offers.

from imageviewer.

kopaka1822 avatar kopaka1822 commented on June 27, 2024

Ah okay,
I think I understand it better now.
I could add such a dropdown menu in the status bar.
A few questions:

  • Should the pixel colors in the status bar only display the selected channels? Or all channels?
  • What happens on export? I would assume this is just a "view" filter, so if I export the texture, I would still export all available channels instead of the channels filtered by the dropdown. (What would be your expected behavior in this case?)
  • Are you able to compile the project by yourself? Or would you like me to attach the new .exe file when I'm done?

from imageviewer.

cityrobo avatar cityrobo commented on June 27, 2024
  • I believe it would be logical if it displayed the Greyscale value of the selected pixel on the channel that is currently being displayed.
  • for my purposes, being able to export individual channels as a greyscale image is very valuable. if that is a possible feature, that would be great!
  • I'm currently pulling the project but I'm not sure if there are any prerequisites that I might need. In any case, there are probably other people who would appreciate these features! An official release sounds like the best option. Albeit I would be willing to compile it for testing purposes, of cause.

from imageviewer.

kopaka1822 avatar kopaka1822 commented on June 27, 2024

Hi,
I added a dropdown menu to the status bar like suggested. The pixel color format will be automatically detected from now on (if you work with a grayscale image, you will only see a single value). Let me know when you need additional changes.
For build instructions see: https://github.com/kopaka1822/ImageViewer/blob/master/Docs/build.md
If this is too complicated (if you don't work with visual studio) I can compile an executable for you (let me know).

from imageviewer.

cityrobo avatar cityrobo commented on June 27, 2024

I only have Visual Studio 2022 installed, and even after a bit of messing around it still doesn't want to compile the DxImageLoader.dll because it can't find gli/format.hpp, and after setting the path to the file correctly, another 921 errors appear.
there probably went something majorly wrong either when I pulled it or when VS tried to update it to 2022.

A working compiled executable would be much appreciated!

from imageviewer.

kopaka1822 avatar kopaka1822 commented on June 27, 2024

ImageViewer3_6_8445.zip

from imageviewer.

cityrobo avatar cityrobo commented on June 27, 2024

this is amazing! this is exactly what I have been looking for! Such a great texture analysis tool you have created here! The combination of being able to open all these weird DDS texture compression formats without any messing around plus the ability to only display single channels at a time is something I have not found in any other stand alone image viewer, so thank you very much for considering my feature request and implementing it so perfectly.

from imageviewer.

cityrobo avatar cityrobo commented on June 27, 2024

I have found a bug where when you have only the RGB channels selected through the drop down, it exports the red channel only instead of the RGB channels with alpha removed / set to white.

from imageviewer.

kopaka1822 avatar kopaka1822 commented on June 27, 2024

I think I fixed the bug you mentioned.
I belive that the source was an incorrect format suggestion in the export dialog:
image
In the old version, sometimes the format R8_SRGB was set as the default choice instead of RGB8_SRGB (This was probably the error?).
I have fixed the suggestion in the new version.
However, note that if your image is actually grayscale (red=green=blue) it will still recommend R8 as the first choice, because it saves memory. If you want to forcefully export a grayscale image as RGB8 you need to adjust the format in the dropdown.

Replacing the .exe should suffice:
ImageViewer.zip

from imageviewer.

kopaka1822 avatar kopaka1822 commented on June 27, 2024

@cityrobo Does everything work now or did you encounter new issues?

from imageviewer.

cityrobo avatar cityrobo commented on June 27, 2024

Sorry for the long delay.

The last time I tried it, the export settings still didn't update to the selected channel.
When I had RGB selected, the export was still set to R-only and I had to manually select the RGB export from the drop down once I was in the export window.

Not a huge issue, just something that a new user could stumble over.

from imageviewer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.