General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old March 26th, 2003, 11:25 PM
Taelo Taelo is offline
5B's
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: PC, FL
Posts: 366 Taelo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 30 m 59 sec
Reputation Power: 7
GD + Border Wrapping?

Does GD have the ability to create a black 1px border around an image?
__________________
-- Jason

Reply With Quote
  #2  
Old March 26th, 2003, 11:49 PM
Brian Rosner Brian Rosner is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Denver, CO
Posts: 34 Brian Rosner User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to Brian Rosner Send a message via AIM to Brian Rosner Send a message via Yahoo to Brian Rosner
Let CSS do it.

img.px_border {
border: 1px solid #000000;
}

<img src="image.gif" width="100" height="100" class="px_border" />

Why do you want GD to do it?

Reply With Quote
  #3  
Old March 27th, 2003, 12:20 AM
Taelo Taelo is offline
5B's
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: PC, FL
Posts: 366 Taelo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 30 m 59 sec
Reputation Power: 7
it is for an image upload,...I am resizing images and a few other things for the user,....I want to have an option for the user that would allow him to either have or not have a border.

I am blobbing the images as well

Reply With Quote
  #4  
Old March 27th, 2003, 03:21 AM
*JaH* *JaH* is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 14 *JaH* User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally posted by Brian Rosner
Let CSS do it.

img.px_border {
border: 1px solid #000000;
}

<img src="image.gif" width="100" height="100" class="px_border" />

Why do you want GD to do it?


pff, why do it the hard way? you can also just use:

<img src="image.gif" border=1>

that's at least something that'll work in every browser, unlike css

but I'm sure it's also possible to draw a rectangle around the image will search for it

Reply With Quote
  #5  
Old March 27th, 2003, 07:07 AM
wAr-AnGeL wAr-AnGeL is offline
Forum Security
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Behind You
Posts: 479 wAr-AnGeL User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 50 sec
Reputation Power: 7
Send a message via ICQ to wAr-AnGeL Send a message via AIM to wAr-AnGeL
the <img src="img.gif" border=1> will draw a very ugly border around it. CSS will let you have the style you want.
__________________




"Only Linux users see the end of crashes."
- Pl4t0

Reply With Quote
  #6  
Old March 27th, 2003, 11:45 AM
*JaH* *JaH* is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 14 *JaH* User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Quote:
Originally posted by wAr-AnGeL
the <img src="img.gif" border=1> will draw a very ugly border around it. CSS will let you have the style you want.



but it won't work on most browsers, so alot of visitors won't see anything Better something what you call ugly (although I don't agree that it's ugly, it's as normal as ever) than nothing at all

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > GD + Border Wrapping?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT