aliens

Author Topic: (F12) screendumps in .png format https:// forum support for .bmp ?  (Read 18399 times)

Offline moriarty

  • Commander
  • *****
  • Posts: 1421
    • View Profile
    • Luke's OX mod site
(F12) screendumps in .png format https:// forum support for .bmp ?
« on: September 01, 2012, 08:40:59 pm »
it would be really nice if the screendumps that you can so conveniently create in openxcom using the F12 key could actually be posted here without having to convert them... just saying.

Offline radius75

  • Colonel
  • ****
  • Posts: 108
  • I am the average PC user!
    • View Profile
Re: (F12) screendumps in .png format https:// forum support for .bmp ?
« Reply #1 on: September 03, 2012, 06:04:38 pm »
no need convert.
only rename extension

screen000x.bmp -> screen000x.jpg
screen000x.bmp -> screen000x.png


attach. test:  .bmp > .jpg / .bmp > .png
---
EDIT
btw. rename in game .bmp > .jpg or .png work 100% on winxp32
Screen.cpp
Code: [Select]
ss << Options::getUserFolder() << "screen" << std::setfill('0') << std::setw(3) << i << ".bmp";
« Last Edit: September 03, 2012, 06:28:58 pm by radius75 »

Offline moriarty

  • Commander
  • *****
  • Posts: 1421
    • View Profile
    • Luke's OX mod site
Re: (F12) screendumps in .png format https:// forum support for .bmp ?
« Reply #2 on: September 03, 2012, 06:30:36 pm »
Seriously? Come on. Okay, it kind of makes sense - the forum simply checks for supported extension, the browser displays anyway... but that's a really, really cheap workaround, wouldn't you agree?  ;D

Considering the un-compressedness of .bmp it is of course easy to use as a screen dump. But I'd still prefer one of my two options from the thread title  8)

Offline radius75

  • Colonel
  • ****
  • Posts: 108
  • I am the average PC user!
    • View Profile
Re: (F12) screendumps in .png format https:// forum support for .bmp ?
« Reply #3 on: September 03, 2012, 06:55:04 pm »
really cheap workaround, wouldn't you agree?  ;D
yes ;)

You want to add .bmp to the option of the enclosures of the forum?
Or alter .bmp on .png in the code of the game?

Offline moriarty

  • Commander
  • *****
  • Posts: 1421
    • View Profile
    • Luke's OX mod site
Re: (F12) screendumps in .png format https:// forum support for .bmp ?
« Reply #4 on: September 03, 2012, 07:14:05 pm »
Either would be nice for error reporting... but saving directly to .png would be more elegant in the long run.

Offline radius75

  • Colonel
  • ****
  • Posts: 108
  • I am the average PC user!
    • View Profile
Re: (F12) screendumps in .png format https:// forum support for .bmp ?
« Reply #5 on: September 03, 2012, 08:23:05 pm »
the only change in the game ".bmp" on ".png" he does not influence the size of the saved screenshot file...

Offline michal

  • Commander
  • *****
  • Posts: 629
    • View Profile
Re: (F12) screendumps in .png format https:// forum support for .bmp ?
« Reply #6 on: September 03, 2012, 08:37:44 pm »
I've allowed attaching .bmp files, so you don't need to rename files ;)

On the long run it would be better of course to save screendumps in png.

Offline moriarty

  • Commander
  • *****
  • Posts: 1421
    • View Profile
    • Luke's OX mod site
Re: (F12) screendumps in .png format https:// forum support for .bmp ?
« Reply #7 on: September 03, 2012, 08:39:03 pm »
Thank you michal!

Offline radius75

  • Colonel
  • ****
  • Posts: 108
  • I am the average PC user!
    • View Profile
Re: (F12) screendumps in .png format https:// forum support for .bmp ?
« Reply #8 on: September 03, 2012, 08:55:19 pm »
:)

Volutar

  • Guest
Re: (F12) screendumps in .png format https:// forum support for .bmp ?
« Reply #9 on: September 03, 2012, 09:38:56 pm »
Are you kidding? 346kb BMP instead of 4kb png - is an alternative?
Haven't heard of something more lame than that...

You may rename it even into .TXT or even .WAV - it will stay .BMP file...
« Last Edit: September 03, 2012, 09:42:06 pm by Volutar »

Offline radius75

  • Colonel
  • ****
  • Posts: 108
  • I am the average PC user!
    • View Profile
Re: (F12) screendumps in .png format https:// forum support for .bmp ?
« Reply #10 on: September 03, 2012, 09:58:13 pm »
You are right. What "alternative"?
I also think that you did not understand the whole conversation.

Quote
Either would be nice for error reporting... but saving directly to .png would be more elegant in the long run.
Quote
the only change in the game ".bmp" on ".png" he does not influence the size of the saved screenshot file...

The problem related to placing .bmp screenshots on the forum. He was solved by Michal [forum options].
« Last Edit: September 03, 2012, 10:14:08 pm by radius75 »

Offline SupSuper

  • Lazy Developer
  • Administrator
  • Commander
  • *****
  • Posts: 2162
    • View Profile
Re: (F12) screendumps in .png format https:// forum support for .bmp ?
« Reply #11 on: September 04, 2012, 01:34:28 am »
I'm definitely removing BMP support from the forum as soon as OpenXcom doesn't use it anymore, it's horrifying! (some forums even automatically convert them)

Anyways I have had the code for outputting screenshots in PNG for a while, it's just a matter of figuring out how to tie up all the required libraries to OpenXcom. I mean have you looked at the PNG website? It's like something out of the 80s! :P
« Last Edit: September 04, 2012, 01:36:54 am by SupSuper »

Offline radius75

  • Colonel
  • ****
  • Posts: 108
  • I am the average PC user!
    • View Profile
Re: (F12) screendumps in .png format https:// forum support for .bmp ?
« Reply #12 on: September 04, 2012, 01:59:33 am »
 ;D

Offline Daiky

  • Battlescape Programmer
  • Administrator
  • Commander
  • *****
  • Posts: 904
    • View Profile
Re: (F12) screendumps in .png format https:// forum support for .bmp ?
« Reply #13 on: September 04, 2012, 10:39:54 am »
And once the required libraries are linked into openxcom (I thought it was only zlib and libpng?) then it's only a small step to load sprites from PNG  8)

Offline michal

  • Commander
  • *****
  • Posts: 629
    • View Profile
Re: (F12) screendumps in .png format https:// forum support for .bmp ?
« Reply #14 on: September 04, 2012, 11:08:38 am »
Small step for developer, a giant leap for modders :)