MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides

Homepage Register FAQ Members Mark Forums Read Advertise Site Gear FPSowned
Go Back   MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides > General > Suggestions
Reload this Page [imgt] / [img] - Image Thumbnails

Suggestions Make suggestions for changes to MMOwned.com


Reply
 
LinkBack Thread Tools
  #1  
Old 11-04-2007
schlumpf's Avatar
schlumpf is Offline
ハローキティ <3 | teh flame cat

 
Join Date: Nov 2006
Location: Germany (DE)
Posts: 1,322
Reputation: 454
Rep Power: 5
schlumpf is a glorious beacon of lightschlumpf is a glorious beacon of lightschlumpf is a glorious beacon of lightschlumpf is a glorious beacon of lightschlumpf is a glorious beacon of light
[imgt] / [img] - Image Thumbnails

Hi there.

When posting new edits or whatever its always nice to post screens. But too big screens **** up the layout here and links arent clicked that often.
So I suggest doing thumbnails if a picture is above a specific width or introducing the [imgt] tag. This tag may create a thumbnail and include it in the post.

It may work like this:
Code:
[imgt]http://www.pressebox.de/attachment/40919/Perfect+Image+11+Rechts+3D+300dpi+rgb.jpg[/imgt]
resulting into:


The script iteself isn't that hard:

Code:
    <? 
$PicPathIn="../bilder/"; 
$PicPathOut="../bilder/out/"; 

$bild="Foto.jpg"; 

$size= GetImageSize("$PicPathIn"."$bild"); 
$breite=$size[0]; 
$hoehe=$size[1]; 
$neueBreite=100; 
$neueHoehe= intval($hoehe*$neueBreite/$breite); 

if($size[2]==1) { 
// GIF 
$altesBild= imagecreatefromgif("$PicPathIn"."$bild"); 
$neuesBild= imagecreate($neueBreite,$neueHoehe); 
 imageCopyResized($neuesBild,$altesBild,0,0,0,0,$neueBreite,$neueHoehe,$breite,$hoehe); 
 imageGIF($neuesBild,"$PicPathOut"."TN"."$bild"); 
} 

if($size[2]==2) { 
// JPG 
$altesBild= ImageCreateFromJPEG("$PicPathIn"."$bild"); 
$neuesBild= imagecreate($neueBreite,$neueHoehe); 
 imageCopyResized($neuesBild,$altesBild,0,0,0,0,$neueBreite,$neueHoehe,$breite,$hoehe); 
 ImageJPEG($neuesBild,"$PicPathOut"."TN"."$bild"); 
} 

if($size[2]==3) { 
// PNG 
$altesBild= ImageCreateFromPNG("$PicPathIn"."$bild"); 
$neuesBild= imagecreate($neueBreite,$neueHoehe); 
 imageCopyResized($neuesBild,$altesBild,0,0,0,0,$neueBreite,$neueHoehe,$breite,$hoehe); 
 ImagePNG($neuesBild,"$PicPathOut"."TN"."$bild"); 
} 

echo "Altes Bild:<BR>"; 
echo "<IMG SRC=\"$PicPathIn$bild\" WIDTH=\"$breite\" HEIGHT=\"$hoehe\"><BR><BR>"; 
echo "Neues Bild:<BR>"; 
$Thumbnail=$PicPathOut."TN".$bild; 
echo "<IMG SRC=\"$Thumbnail\" WIDTH=\"$neueBreite\" HEIGHT=\"$neueHoehe\">"; 
?>
This code reads a image from $PicPathIn . $bild and will write it to $PicPathOut . "TN" . $bild. You may do the script so it fetches the Get-string and throws out a image as file.

Code:
thumb.php?img="path:\\to.the.image" -> "PNG.a. ...d.a54.56.12."
This should not be hard. I hope you can and will do it x) maybe add some kind of nice backdrop too, so it fits to mmowned.

You may also do it in CSS / javascript .. but meeh ^^
__________________


Reply With Quote

Donate to remove ads.
  #2  
Old 11-04-2007
Giorgio Armani's Avatar
Giorgio Armani is Offline
G|A
 
Join Date: Feb 2007
Location: Croatia
Posts: 1,959
Reputation: 475
Rep Power: 5
Giorgio Armani is a glorious beacon of lightGiorgio Armani is a glorious beacon of lightGiorgio Armani is a glorious beacon of lightGiorgio Armani is a glorious beacon of lightGiorgio Armani is a glorious beacon of light
Re: [imgt] / [img] - Image Thumbnails

[Only registered and activated users can see links. ]

Why just don't use one of the Thumbnail links from imageshack?..

__________________

Reply With Quote
  #3  
Old 11-04-2007
schlumpf's Avatar
schlumpf is Offline
ハローキティ <3 | teh flame cat

 
Join Date: Nov 2006
Location: Germany (DE)
Posts: 1,322
Reputation: 454
Rep Power: 5
schlumpf is a glorious beacon of lightschlumpf is a glorious beacon of lightschlumpf is a glorious beacon of lightschlumpf is a glorious beacon of lightschlumpf is a glorious beacon of light
Re: [imgt] / [img] - Image Thumbnails

Because not everyone is using Imageshack?
__________________


Reply With Quote
  #4  
Old 11-04-2007
Nugma's Avatar
Nugma is Offline
Contributor
 
Join Date: Aug 2006
Location: Europe - Denmark
Posts: 1,281
Reputation: 122
Rep Power: 2
Nugma will become famous soon enoughNugma will become famous soon enough
Re: [imgt] / [img] - Image Thumbnails

Quote:
Originally Posted by schlumpf View Post
Because not everyone is using Imageshack?
Your signature wins.
__________________
Reply With Quote
  #5  
Old 11-04-2007
Giorgio Armani's Avatar
Giorgio Armani is Offline
G|A
 
Join Date: Feb 2007
Location: Croatia
Posts: 1,959
Reputation: 475
Rep Power: 5
Giorgio Armani is a glorious beacon of lightGiorgio Armani is a glorious beacon of lightGiorgio Armani is a glorious beacon of lightGiorgio Armani is a glorious beacon of lightGiorgio Armani is a glorious beacon of light
Re: [imgt] / [img] - Image Thumbnails

Yes you're right Schlumpf, I forgot that ><.
__________________

Reply With Quote
  #6  
Old 11-04-2007
Nugma's Avatar
Nugma is Offline
Contributor
 
Join Date: Aug 2006
Location: Europe - Denmark
Posts: 1,281
Reputation: 122
Rep Power: 2
Nugma will become famous soon enoughNugma will become famous soon enough
Re: [imgt] / [img] - Image Thumbnails

Quote:
Originally Posted by Remah View Post
Yes you're right Schlumpf, I forgot that ><.
Schlumpf ist richtich
__________________
Reply With Quote
  #7  
Old 11-04-2007
Fault's Avatar
Fault is Offline
There is No Spoon

 
Join Date: Aug 2006
Location: Throne of the Lich
Posts: 2,049
Reputation: 715
Rep Power: 7
Fault is a splendid one to beholdFault is a splendid one to beholdFault is a splendid one to beholdFault is a splendid one to beholdFault is a splendid one to beholdFault is a splendid one to beholdFault is a splendid one to behold
Re: [imgt] / [img] - Image Thumbnails

Personally, i hate those (the tumbnails). I can never see them, and hate opening them in another screen.
__________________
"If I and everyone else could contribute to MMOwned like you do it would be a terrific place." Don't PM me with request, only Questions
Reply With Quote
  #8  
Old 11-05-2007
sorvad's Avatar
sorvad is Offline
Knight-Lieutenant
 
Join Date: Nov 2006
Posts: 235
Reputation: 19
Rep Power: 2
sorvad is on a distinguished road
Re: [imgt] / [img] - Image Thumbnails

Quote:
Originally Posted by Fault View Post
Personally, i hate those (the tumbnails). I can never see them, and hate opening them in another screen.
me too, mabey you could just make they screenshots a bit smaller
__________________
MilkTheNet is up again! Sign-up [Only registered and activated users can see links. ]
Reply With Quote
  #9  
Old 11-05-2007
Giorgio Armani's Avatar
Giorgio Armani is Offline
G|A
 
Join Date: Feb 2007
Location: Croatia
Posts: 1,959
Reputation: 475
Rep Power: 5
Giorgio Armani is a glorious beacon of lightGiorgio Armani is a glorious beacon of lightGiorgio Armani is a glorious beacon of lightGiorgio Armani is a glorious beacon of lightGiorgio Armani is a glorious beacon of light
Re: [imgt] / [img] - Image Thumbnails

The best option imo is to keep the SS at/size it to 1280x1024 or higher so people have to scroll to see it all.

/ass.
__________________

Reply With Quote
  #10  
Old 11-05-2007
MaXe L3G3ND is Offline
Banned
 
Join Date: Nov 2007
Location: 127.0.0.1
Posts: 101
Reputation: 108
Rep Power: 0
MaXe L3G3ND will become famous soon enoughMaXe L3G3ND will become famous soon enough
Re: [imgt] / [img] - Image Thumbnails

sounds cool, though why is the script coded in german ?? lol
(yes i know you are german schlumpf but english scripts are win )

Now, i still vote for this though keep in mind the forum will use
power on resizing the images aka it could make the forum slower.
Reply With Quote
  #11  
Old 11-05-2007
schlumpf's Avatar
schlumpf is Offline
ハローキティ <3 | teh flame cat

 
Join Date: Nov 2006
Location: Germany (DE)
Posts: 1,322
Reputation: 454
Rep Power: 5
schlumpf is a glorious beacon of lightschlumpf is a glorious beacon of lightschlumpf is a glorious beacon of lightschlumpf is a glorious beacon of lightschlumpf is a glorious beacon of light
Re: [imgt] / [img] - Image Thumbnails

I was too lazy to translate it. I haven't done it myself :P Just c&p. I code in english xD

btw: [Only registered and activated users can see links. ]image.jpg&width=500
fill in the filename and the size, download it and then upload it again. gives nice thumbnails xD
__________________


Reply With Quote
  #12  
Old 11-05-2007
Hallowsend's Avatar
Hallowsend is Offline
滚开! 大声笑。I 是令人敬畏的。
 
Join Date: Sep 2007
Location: Killing sum cats
Posts: 715
Reputation: 366
Rep Power: 3
Hallowsend is just really niceHallowsend is just really niceHallowsend is just really niceHallowsend is just really nice
Re: [imgt] / [img] - Image Thumbnails

/signed (to short)
__________________
Reply With Quote
  #13  
Old 11-05-2007
Marlo's Avatar
Marlo is Offline
The Whitest Mod You Know
Legendary User
 
Join Date: Jul 2006
Location: 127.0.0.1
Posts: 2,557
Reputation: 671
Rep Power: 7
Marlo is a splendid one to beholdMarlo is a splendid one to beholdMarlo is a splendid one to beholdMarlo is a splendid one to beholdMarlo is a splendid one to beholdMarlo is a splendid one to behold
Re: [imgt] / [img] - Image Thumbnails

Cant see this being implemented. If people were just considerate then they would just post screenshots at half size with some JPEG compression (for some reason people like to have their 1000 x 800 images at 100% quality....)
__________________
Reply With Quote
  #14  
Old 11-05-2007
MaXe L3G3ND is Offline
Banned
 
Join Date: Nov 2007
Location: 127.0.0.1
Posts: 101
Reputation: 108
Rep Power: 0
MaXe L3G3ND will become famous soon enoughMaXe L3G3ND will become famous soon enough
Re: [imgt] / [img] - Image Thumbnails

Ah ok, it's still nice you find the script Schlumpf +rep as i actually needed one It's php right ?
Reply With Quote
  #15  
Old 11-06-2007
schlumpf's Avatar
schlumpf is Offline
ハローキティ <3 | teh flame cat

 
Join Date: Nov 2006
Location: Germany (DE)
Posts: 1,322
Reputation: 454
Rep Power: 5
schlumpf is a glorious beacon of lightschlumpf is a glorious beacon of lightschlumpf is a glorious beacon of lightschlumpf is a glorious beacon of lightschlumpf is a glorious beacon of light
Re: [imgt] / [img] - Image Thumbnails

Its php. You did not +rep :P
__________________


Reply With Quote
Reply

Donate to remove ads.

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On


Click here for your favorite eBay items


All times are GMT -4. The time now is 04:40 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279