Page 1 of 1

[Help] Image in batch file

Posted: 07 May 2017 13:06
by Tameima
I'm working on a simple text based adventure game, and i need to add some images to my batch file like images for items, locations, background.
Is there any way? Tool, Plugin?

Re: [Help] Image in batch file

Posted: 07 May 2017 15:36
by ShadowThief
The command line is text-only. The closest you're going to get is with ASCII art.

Also, text-based adventure games by definition do not have graphics.

Re: [Help] Image in batch file

Posted: 09 May 2017 07:00
by PaperTronics
You can use InsertBMP.exe made by aGerman. You can find this plugin on my website: http://www.thebateam.org/2016/11/how-to-show-images-on-cmd-console.html

Though if you have a image in another format e.g JPG or PNG insertbmp.exe will refuse to work

But....

You can convert it into BMP using Microsoft Paint. Just click on the button near the Home text at the top of the window and then Save As > BMP Picture



PaperTronics

Re: [Help] Image in batch file

Posted: 09 May 2017 10:19
by Compo
PaperTronics wrote:You can use InsertBMP.exe made by aGerman. You can find this plugin on my website: http://www...

I must say it's a little shameful, on a site frequented by aGerman, to use his work as yet another plug to your website.

Re: [Help] Image in batch file

Posted: 09 May 2017 13:17
by aGerman
It's freeware. So I'm fine :wink:

Steffen

Re: [Help] Image in batch file

Posted: 12 May 2017 07:26
by PaperTronics
Compo wrote:
PaperTronics wrote:You can use InsertBMP.exe made by aGerman. You can find this plugin on my website: http://www...

I must say it's a little shameful, on a site frequented by aGerman, to use his work as yet another plug to your website.


Compo I just pointed to my website so that he could know how to use it. I could've added the syntax of InsertBMP in the reply but I din't want to make it long. So that's why I pointed to my website.

My apologies if I did anything wrong

Re: [Help] Image in batch file

Posted: 02 Aug 2019 10:46
by craftdium
I would like to make insertbmp.exe work with the latest version of Windows 10

Re: [Help] Image in batch file

Posted: 03 Aug 2019 07:41
by penpen
If i remember right, then aGerman is the developer of "insertbmp.exe" and gave misol101 the source who implemented it in his utility "CmdBkg.exe":
viewtopic.php?t=7407

If "insertBmp.exe" doesn't work under winows 10, then i would suggest to use "CmdBkg.exe" instead.


penpen

Re: [Help] Image in batch file

Posted: 04 Aug 2019 02:18
by aGerman
Yes, CmdBkg is definitely the better choice. Not only that I don't know the reason why insertbmp doesn't work anymore, it would only draw in the console window itself which makes the image volatile.

Steffen

Re: [Help] Image in batch file

Posted: 04 Aug 2019 03:12
by misol101
CmdBkg will stretch the image to cover the entire cmd window though, which might not be what you want.

Cmdgfx_RGB might be a better choice (it can show BMP images among many other things), although I agree it seems strange that InsertBmp does not work.


Edit: there is also Cmdwiz ”insertbmp” operation, try if that works (simpler to use than cmdgfx_RGB, a few more options than aGermans insertbmp)

Re: [Help] Image in batch file

Posted: 08 Aug 2019 10:34
by craftdium
thanks for all the answers you gave me what I would like to do is do exactly like InsertBmp with windows 10 but the problem is that it does not work with Windows 10

Re: [Help] Image in batch file

Posted: 08 Aug 2019 13:13
by aGerman
I am the author of insertbmp. I did several tests and I confirm that this tool doesn't work using the new Windows 10 console. It still inserts the image, but it persists only as long as the insertbmp.exe process lives (some milliseconds). That means Microsoft changed something in the new console host. I don't know how to work around this issue.

Steffen

Re: [Help] Image in batch file

Posted: 08 Aug 2019 13:19
by craftdium
you would not have an alternative if you find an alternative I will be a taker because it's been 5 or 6 months that I seek if you discord you could pass me your discord or I pass mine to you strictly POKEFAN62 # 9795

Re: [Help] Image in batch file

Posted: 15 Aug 2020 07:12
by hxr404
aGerman Can you add a duration parameter to insertbmp please, I think it could fix the issue that
aGerman wrote:
08 Aug 2019 13:13
it persists only as long as the insertbmp.exe process lives (some milliseconds).
Thank you

Re: [Help] Image in batch file

Posted: 15 Aug 2020 08:51
by aGerman
Unfortunately this doesn't fix anything. Letting the process live longer also means that the batch processing waits until the process terminates. But this doesn't make sense because you certainly want to immediatelly continue in your script. And guess what happens if the proces finally terminates ...
So, no this tool is just dead. If you want to have images then have a look at misol101's tools. Or use the Windows Terminal app to launch your batch scripts where you can define background images in its JSON profile settings.

Steffen