DragonPrime - LoGD Resource Community
Welcome Guest
  • Good afternoon, Guest.
    Please log in, or register.
  • September 24, 2016, 03:31:09 PM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

Pages: [1]   Go Down
  Print  
Author Topic: Pictures and making them appear clear to the background  (Read 2730 times)
0 Members and 1 Guest are viewing this topic.
DaveS
Mod God
*****
Offline Offline

Posts: 1544


Dfly... you know, as in DaveFly


View Profile
« on: October 29, 2005, 10:18:18 AM »

Lately i've gotten into using pictures in my modules (always with an option to turn them off as a setting just for people running a no-graphics site or one running low on a small server).

Here's what I have:

A picture of a tree on white.

What I want:

I would like the white part to be clear so that you don't see the white but rather you see the natural background color.

Here's the rawoutput that I'm using:
rawoutput("<br><center><table><tr><td align=center><img src=modules/strigoitower/obliviax.jpg></td></tr></table></center><br>");


If I'm not clear on the problem, let me know and I'll try to clarify.

Thanks!
Logged

Check out my Last Module:
The Dragon Eggs Expansion
http://dragonprime.net/index.php?topic=8474.0

About my Retirement:
http://dragonprime.net/index.php?topic=9080

See my complete module list here:
http://dragonprime.net/index.php?topic=3038.0
Kendaer
Guest
« Reply #1 on: October 29, 2005, 10:29:14 AM »

This has to do with your graphic, not the game.

Your graphic needs to be modified to have transparency.

JPGs cannot have transparency.

You will need to convert your image to either gif or png and then set the transparency.  How to do that depends on your graphics tools and this is not the right forum for that.
Logged
DaveS
Mod God
*****
Offline Offline

Posts: 1544


Dfly... you know, as in DaveFly


View Profile
« Reply #2 on: October 29, 2005, 12:39:55 PM »

I see... obviously i thought it was an issue of the coding not the image. My bad.  I'll figure it out.  Thank you.

By the way Kendaer, you sometimes get a little touchy on where the "right forum" is to ask questions/find answers.  Nonetheless, thank you for the answer.
« Last Edit: October 29, 2005, 12:40:48 PM by DaveS » Logged

Check out my Last Module:
The Dragon Eggs Expansion
http://dragonprime.net/index.php?topic=8474.0

About my Retirement:
http://dragonprime.net/index.php?topic=9080

See my complete module list here:
http://dragonprime.net/index.php?topic=3038.0
Kendaer
Guest
« Reply #3 on: October 30, 2005, 11:32:07 AM »

I see... obviously i thought it was an issue of the coding not the image. My bad.  I'll figure it out.  Thank you.

By the way Kendaer, you sometimes get a little touchy on where the "right forum" is to ask questions/find answers.  Nonetheless, thank you for the answer.


Wasn't meant to be touchy.. Just pointing out that this wasn't a forum for discussing how to modify graphic files or use various tools like photoshop, gimp, or what-have-you and that if you didn't know how to convert an image from a jpg to a gif with transparency, asking in one of those venues (ie, a forum dedicated to image manipulation, or one dedicated to a specific image editing tool) would be more efficient Smiley
Logged
mattbots
Guest
« Reply #4 on: October 30, 2005, 11:48:23 AM »

If you can't figure it out, post a link to the image, and I (or any other helpful member) can fix the transparency and repost.

Setting background transparency in a format that supports it (PNG/GIF) is pretty easy with my raster application, Paint Shop Pro, as well as any other good app.
Logged
robert
Old Dog
Mod God
*****
Offline Offline

Posts: 1047


LoGD Buff!


View Profile WWW
« Reply #5 on: October 30, 2005, 09:20:08 PM »

Yes image use for the game is not a game issue but one for the image itself ...mainly cause LotGD is a text based game and adding images is a MOD that is bearly supported, such MODS are your problems not the games.

I also use images in one logd I run heres some things which may help:

- Use of .jpg sucks
- Using .gif and or .png is much better (compatible with most browsers)
- USE 'alt tags' ..cause some browsers dont support images or may be  a browser used by the vision impaired
- using a transparant backround makes the image compatible with all the skins available to the player
- using images takes a little work on your part to make it appear proper on the page ..ie: size, spacing etc ...etc
- some images appear differant depending on browser AND monitor  settings set by the "user"  ...nothing you can do to compensate for thousands of possible settings ...too bad!!
« Last Edit: October 30, 2005, 09:21:08 PM by robert » Logged

eph
Guest
« Reply #6 on: October 30, 2005, 11:58:08 PM »

And not to forget:

- transparent png have a way better compression rate than gif
- you must be the artist who drew or photographed the work, or you need explicit permission by the original artist to use and alter the work.

The latter seems obvious, but sadly it isn't.

That said, I can help out too if you need transparency added to a pic, though I'm not good at explaining.
Logged
DaveS
Mod God
*****
Offline Offline

Posts: 1544


Dfly... you know, as in DaveFly


View Profile
« Reply #7 on: October 31, 2005, 07:42:55 AM »

Ah, thank you very much for the help... i'm not going for anything really complicated or anything... just a little picture to set the mood.  (I don't think I will be receiving any calls from art museums offering exhibitions or anything.)

But I now have a program in hand and I will definitely use png in order to prioritize space.

Thanks for all the advice from everyone!
Logged

Check out my Last Module:
The Dragon Eggs Expansion
http://dragonprime.net/index.php?topic=8474.0

About my Retirement:
http://dragonprime.net/index.php?topic=9080

See my complete module list here:
http://dragonprime.net/index.php?topic=3038.0
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Please take the time to read the FAQ and browse the DragonPedia

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Who's Online
51 Guests, 0 Users
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search