Page 1 of 1

Image height being cropped at correct 640x400 res.

Posted: 05 Jan 2020 15:34
by Cosmic Puppet
Discovered this trying to make a desktop from The Fifth Element movie poster. The bottom kept getting cut off even with the correct canvas size. Drove me nuts!

The magic number turns out to be 381 pixels high! (It chops 19 pixels off the bottom. God knows why and probably so do the Atari ST developers. :lol:
Here's what I had to do. I've used another image after being driven mad by the Fifth element lol

I have however managed to make the thing which I'll include here. Works on Deskpic without being chopped now. :cheer:

1. Load picture and change image height to 381 pixels.jpg
1. Load picture and change image height to 381 pixels.jpg (201.69 KiB) Viewed 4375 times
2. Open new file and set to 640 x 400.jpg
2. Open new file and set to 640 x 400.jpg (106.41 KiB) Viewed 4375 times
3. Drag picture into canvas (which I've made black to suit).jpg
3. Drag picture into canvas (which I've made black to suit).jpg (120.97 KiB) Viewed 4375 times
4. Line up and flatten image (has to be against the top to avoid cropping).jpg
4. Line up and flatten image (has to be against the top to avoid cropping).jpg (142.37 KiB) Viewed 4375 times
5. Save as jpeg and drag image into Paint Shop Pro.jpg
5. Save as jpeg and drag image into Paint Shop Pro.jpg (212.91 KiB) Viewed 4375 times
6. Decrease colour depth to 1 bit.jpg
6. Decrease colour depth to 1 bit.jpg (217.01 KiB) Viewed 4375 times
7. Play with settings and click ok.jpg
7. Play with settings and click ok.jpg (99.77 KiB) Viewed 4375 times
8. Save as GEMPaint file.jpg
8. Save as GEMPaint file.jpg (245.08 KiB) Viewed 4375 times
9. Finished result.jpg
9. Finished result.jpg (244.61 KiB) Viewed 4375 times

Here's a Fifth Element Desk Pic:

Fifth.zip
(21.65 KiB) Downloaded 191 times

Re: Image height being cropped at correct 640x400 res.

Posted: 05 Jan 2020 15:41
by thorsten.otto
Cosmic Puppet wrote: 05 Jan 2020 15:34 (It chops 19 pixels off the bottom. God knows why and probably so do the Atari ST developers. :lol:
19 pixel is the height of the menubar, when using the 8x16 system font. I guess the desktop draws the image below the menubar, not at 0,0.

Re: Image height being cropped at correct 640x400 res.

Posted: 05 Jan 2020 16:17
by Cosmic Puppet
That was the conclusion I came too @thorsten.otto

However this conversion puts it under the 10mm of the menu bar.

Conversion.jpg
Conversion.jpg (60.47 KiB) Viewed 4359 times

Maybe my monitor displays it differently than on the Atari compatible CRT I used to use.

I just kept putting the number down until it stopped cropping (which took some considerable time!) :coffee:

Re: Image height being cropped at correct 640x400 res.

Posted: 05 Jan 2020 16:22
by exxos
I think the menu bars height varies on TOS versions as well. I think on the ST I had to use 12px, but on the Falcon it was 19. I think in part on the falcon it was down to the 3D effect. Its possible it could vary between resolutions also ?

Re: Image height being cropped at correct 640x400 res.

Posted: 05 Jan 2020 16:28
by Cosmic Puppet
Thanks @exxos. So many idiosyncrasies with the Atari! :lol:

I've never had a desktop pic which had important info on the bottom edge before, so never noticed. :)

Re: Image height being cropped at correct 640x400 res.

Posted: 06 Jan 2020 04:08
by thorsten.otto
Yes, the height on the menu bar will vary. The above mentioned 19pixel is only for SingleTOS, and when using the 8x16 system font (ST-High, or TT-High resolutions). Naturally, it will change when using the 8x8 system font (eg. ST-Low or medium). Other AES like XaAES may put some 3D effect on it, so there might be a small difference. And obviously it will change when you replace the system font to something else.

But i think in most cases, that will not be a problem for his purpose. Obviously, when using other resolutions, you will need a different image anyway.

Re: Image height being cropped at correct 640x400 res.

Posted: 06 Jan 2020 10:00
by Cosmic Puppet
Thanks @thorsten.otto

If it wasn't for this community I wouldn't be set up so well. :)