Gimp-Forum.net
Zooming out in "load image from raw data" preview? - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: General questions (https://www.gimp-forum.net/Forum-General-questions)
+--- Thread: Zooming out in "load image from raw data" preview? (/Thread-Zooming-out-in-load-image-from-raw-data-preview)



Zooming out in "load image from raw data" preview? - samzeman - 11-21-2017

I'm messing around with images and audio and data (databending sorta) and I've encountered an image file that has an aspect ratio of a very small width and a very large height, and is in the .data 'format' (aka no format).

If the size goes above 1883 x 693, even with the preview at the largest size the window will go, there are parts of the image i can't see. I don't know what original height the image had, and in the (nonplanar) RGB mode it doesn't affect the parts of the image that I can see. 

Is there a way to zoom out in this preview? It's an oddly specific question, but for that reason I can't figure it out.

(I'm on windows 10 using version 2.8.22 if that matters)


RE: Zooming out in "load image from raw data" preview? - Blighty - 11-21-2017

Not sure what you mean by preview.

If I create an image of 3766 x 693 it opens and displays in my Gimp without problems. (Zoom set to 12.5%)


RE: Zooming out in "load image from raw data" preview? - samzeman - 11-21-2017

Here's an image of the window I mean. When opening a .data file, it asks for dimensions of the image (as this type of file has no image header, and so the program cannot tell its height and width). This is the tallest it goes, and I have it slightly less wide than maximum to illustrate it's a separate window Tongue
[Image: r1CKVLx.png]

I don't have any plugins installed that you don't get by default.


RE: Zooming out in "load image from raw data" preview? - rich2005 - 11-21-2017

Not possible to zoom in.

How did you get the image size? If you do not know the original then it is just a guess.

For an RGB image, you might be able to narrow it down a little. Dividefile size by 3 (channels) gives the product of the width x height. That might rule out common sizes as multiples of 100 or 64/128/256.

Since it is just data you can divide the file up into parts, easy enough in Linux, don't know about Windows.

That might get you a part image that you can at least fiddle with size values.

Sort of example, just the bottom quarter: https://i.imgur.com/hVYZAiF.jpg


RE: Zooming out in "load image from raw data" preview? - samzeman - 11-21-2017

(11-21-2017, 04:52 PM)rich2005 Wrote: Not possible to zoom in.

How did you get the image size? If you do not know the original then it is just a guess.

For an RGB image, you might be able to narrow it down a little. Dividefile size by 3 (channels) gives the product of the width x height. That might rule out common sizes as multiples of 100 or 64/128/256.

Since it is just data you can divide the file up into parts, easy enough in Linux, don't know about Windows.

That might get you a part image that you can at least fiddle with size values.

Sort of example, just the bottom quarter:  https://i.imgur.com/hVYZAiF.jpg

I see what you mean. Unfortunately the size is a guess, indeed Tongue

The original file was not an image file but audio, and I know that seems foolish, but I just want to see what type of thing that opens as. There are patterns in it, which is how I determine width, but I can't figure out the height and I don't want to cut off or add any extra data to the file (before I then convert it back to audio after editing it in an image editor.). Weird, I know, but I'm sure it would do something interesting to the sound. 

If it's impossible for now then never-mind Smile Thanks.