Author Topic: Converting Art For FRUA Using IrfanView  (Read 304 times)

Offline ProphetSword

  • Mod Designer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2886
  • FRUA Lives!
    • Lands of Adventure
Converting Art For FRUA Using IrfanView
« on: March 15, 2017, 12:56:38 PM »
IrfanView is a free program used to manipulate and create artwork.  You can download the most current version here:

http://www.irfanview.com/

This is how I create and import artwork for my modules very quickly.

The first step is to get some artwork.  Usually, I just jump on either Google Images or Bing Images and search for a term that will get me the results I want.  In this case, I searched for "D&D Wizard."






Once I find an appropriate image, I just save it to the hard drive.  Usually, you can just right-click to get a menu of options that allows this.





When it's on the hard drive, I just open it up in IrfanView (which I have set as my default viewer anyway, since I hate the default Photo viewer that comes built into Windows 10).




Since I know the standard pic in FRUA is 88x88, I know that I am dealing with a square ratio.  I try to grab an area that is roughly square with the selection tool.  It's okay if it isn't exactly square, but getting it close will help me know what the picture will look like in FRUA.



Once I've selected the area, I use the Crop Image tool to cut out everything I don't need.



Now, we need to resize the image down to a size that is close to what FRUA needs.  Since I use UA256, I try to get the image around 100x100 to give me a little bit of room to work with.  Also, I always make sure that the numbers are both even (it's a quirk of UA256 that if either of the numbers are odd, the image won't render right).  In this case, I just set it to 100x100 with the Resize tool.



Once the image is resized, I use the option to decrease the color depth in the image to 256.



As the final step, I save the image as a PCX file (something IrfanView can do natively) with an 8 character name that DOSBox can read.  I then use UA256 within DOSBox to grab the image and convert the color palette, and then import it into FRUA.  You can see the final results below.

LANDS OF ADVENTURE: An Old-School Style CRPG

More Information Here: http://landsadventure.blogspot.com/

Offline hans

  • Hero Member
  • *****
  • Posts: 2672
Re: Converting Art For FRUA Using IrfanView
« Reply #1 on: March 15, 2017, 01:47:16 PM »
Thanks, Ben!  That's great!   ;D

I remembered IrfanView being referenced before, and I was on the verge of asking/suggesting for an article like this.   :)

Offline ProphetSword

  • Mod Designer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2886
  • FRUA Lives!
    • Lands of Adventure
Re: Converting Art For FRUA Using IrfanView
« Reply #2 on: March 15, 2017, 02:11:50 PM »
I probably could have offered more details (I certainly took more screenshots than I used), but I was pressed for time.  The program isn't hard to figure out, though.
LANDS OF ADVENTURE: An Old-School Style CRPG

More Information Here: http://landsadventure.blogspot.com/

Online Mechanaut

  • Full Member
  • ***
  • Posts: 104
Re: Converting Art For FRUA Using IrfanView
« Reply #3 on: March 15, 2017, 02:37:02 PM »
Since I know the standard pic in FRUA is 88x88, I know that I am dealing with a square ratio.  I try to grab an area that is roughly square with the selection tool.  It's okay if it isn't exactly square, but getting it close will help me know what the picture will look like in FRUA.
Shift+C will allow you to specify 88x88 pixel (or any size). Hold right-click inside the selection allows you to move it into position. CTRL+Y crops to the selection.
You can resize a selection ~with aspect, by holding CTRL when dragging either the top or bottom selection edge. This is good for using a larger selection of an image ~at aspect, and being able to then resize the cropped image to a smaller size like 88x88.




Pressing f12 allows for minor corrections in editor, using its minimal paint-tools dialog.

Irfanview will also open .LBM files. :)
 
« Last Edit: March 15, 2017, 02:43:10 PM by Mechanaut »

Offline SilentThief

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 889
Re: Converting Art For FRUA Using IrfanView
« Reply #4 on: March 15, 2017, 02:51:55 PM »
Irfanview will also open .LBM files. :)

did not know this. Irfanview is incredibly useful for many other reasons, and I have it installed along with GIMP and project Dogwaffle for working with images/textures.

But I did not know this one. TY

ST the thankful

Online Mechanaut

  • Full Member
  • ***
  • Posts: 104
Re: Converting Art For FRUA Using IrfanView
« Reply #5 on: March 15, 2017, 02:58:13 PM »
This might be a feature of the Irfanview plugins; a separate [companion] download.  It does not save in lbm, but it can certainly convert them to pcx.
« Last Edit: March 15, 2017, 03:00:39 PM by Mechanaut »

Offline ProphetSword

  • Mod Designer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2886
  • FRUA Lives!
    • Lands of Adventure
Re: Converting Art For FRUA Using IrfanView
« Reply #6 on: March 15, 2017, 04:52:46 PM »
Since I know the standard pic in FRUA is 88x88, I know that I am dealing with a square ratio.  I try to grab an area that is roughly square with the selection tool.  It's okay if it isn't exactly square, but getting it close will help me know what the picture will look like in FRUA.
Shift+C will allow you to specify 88x88 pixel (or any size). Hold right-click inside the selection allows you to move it into position. CTRL+Y crops to the selection.
You can resize a selection ~with aspect, by holding CTRL when dragging either the top or bottom selection edge. This is good for using a larger selection of an image ~at aspect, and being able to then resize the cropped image to a smaller size like 88x88.




Pressing f12 allows for minor corrections in editor, using its minimal paint-tools dialog.

Irfanview will also open .LBM files. :)


Thanks! I will need to check all this out next time I convert files. Didn't know most of that.
LANDS OF ADVENTURE: An Old-School Style CRPG

More Information Here: http://landsadventure.blogspot.com/

Offline Nol Drek

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2139
    • Nol Drek's Web Site
Re: Converting Art For FRUA Using IrfanView
« Reply #7 on: March 16, 2017, 09:44:59 PM »
Once the image is resized, I use the option to decrease the color depth in the image to 256.

Does Irfanview give the option of reducing the image to X colors instead of just 256?

The reason I ask is that FRUA small pics use only 224 colors, not 256. You will get a more faithful image in the game if you reduce it to 224 colors before running UA256.
"Into the Drachensgrab Mountains!"

http://www.noldrek.com

Online Mechanaut

  • Full Member
  • ***
  • Posts: 104
Re: Converting Art For FRUA Using IrfanView
« Reply #8 on: March 17, 2017, 01:54:37 AM »
Yes. You can pick an arbitrary number of colors to reduce to.  8)

Offline ProphetSword

  • Mod Designer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2886
  • FRUA Lives!
    • Lands of Adventure
Re: Converting Art For FRUA Using IrfanView
« Reply #9 on: March 17, 2017, 06:30:29 AM »
Once the image is resized, I use the option to decrease the color depth in the image to 256.

Does Irfanview give the option of reducing the image to X colors instead of just 256?

The reason I ask is that FRUA small pics use only 224 colors, not 256. You will get a more faithful image in the game if you reduce it to 224 colors before running UA256.

Yes. And sometimes I do reduce it to 224. I was rushed when I put together the info above, or I probably would have mentioned it.
LANDS OF ADVENTURE: An Old-School Style CRPG

More Information Here: http://landsadventure.blogspot.com/