[imgt] / [img] - Image Thumbnails menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    schlumpf's Avatar Retired Noggit Developer

    Reputation
    755
    Join Date
    Nov 2006
    Posts
    2,759
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [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 ^^

    [imgt] / [img] - Image Thumbnails
  2. #2
    Remahlól's Avatar !!jeULyJf8ld1
    Reputation
    538
    Join Date
    Feb 2007
    Posts
    2,254
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [imgt] / [img] - Image Thumbnails



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

    19/5/2013

  3. #3
    schlumpf's Avatar Retired Noggit Developer

    Reputation
    755
    Join Date
    Nov 2006
    Posts
    2,759
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [imgt] / [img] - Image Thumbnails

    Because not everyone is using Imageshack?

  4. #4
    Nugma's Avatar Field Marshal
    Reputation
    122
    Join Date
    Aug 2006
    Posts
    1,290
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [imgt] / [img] - Image Thumbnails

    Originally Posted by schlumpf View Post
    Because not everyone is using Imageshack?
    Your signature wins.

  5. #5
    Remahlól's Avatar !!jeULyJf8ld1
    Reputation
    538
    Join Date
    Feb 2007
    Posts
    2,254
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [imgt] / [img] - Image Thumbnails

    Yes you're right Schlumpf, I forgot that ><.
    19/5/2013

  6. #6
    Nugma's Avatar Field Marshal
    Reputation
    122
    Join Date
    Aug 2006
    Posts
    1,290
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [imgt] / [img] - Image Thumbnails

    Originally Posted by Remah View Post
    Yes you're right Schlumpf, I forgot that ><.
    Schlumpf ist richtich

  7. #7
    Fault's Avatar Retired Super Moderator

    Reputation
    731
    Join Date
    Aug 2006
    Posts
    2,412
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [imgt] / [img] - Image Thumbnails

    Personally, i hate those (the tumbnails). I can never see them, and hate opening them in another screen.

    Created by MyFitnessPal.com - Free Calorie Counter
    "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



  8. #8
    sorvad's Avatar Active Member
    Reputation
    29
    Join Date
    Nov 2006
    Posts
    255
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [imgt] / [img] - Image Thumbnails

    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


  9. #9
    Remahlól's Avatar !!jeULyJf8ld1
    Reputation
    538
    Join Date
    Feb 2007
    Posts
    2,254
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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.
    19/5/2013

  10. #10
    MaXe L3G3ND's Avatar Member
    Reputation
    108
    Join Date
    Nov 2007
    Posts
    100
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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.
    Has retired and might return..

  11. #11
    schlumpf's Avatar Retired Noggit Developer

    Reputation
    755
    Join Date
    Nov 2006
    Posts
    2,759
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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: http://www.quickthumbnail.com/func_r...none&filename=image.jpg&width=500
    fill in the filename and the size, download it and then upload it again. gives nice thumbnails xD

  12. #12
    Hallowsend's Avatar 滚开! 大声笑。I 是令人敬畏的。
    Reputation
    366
    Join Date
    Sep 2007
    Posts
    720
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [imgt] / [img] - Image Thumbnails

    /signed (to short)

  13. #13
    Marlo's Avatar Banned
    Reputation
    84
    Join Date
    Jul 2006
    Posts
    2,453
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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....)

  14. #14
    MaXe L3G3ND's Avatar Member
    Reputation
    108
    Join Date
    Nov 2007
    Posts
    100
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    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 ?
    Has retired and might return..

  15. #15
    schlumpf's Avatar Retired Noggit Developer

    Reputation
    755
    Join Date
    Nov 2006
    Posts
    2,759
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: [imgt] / [img] - Image Thumbnails

    Its php. You did not +rep :P

Page 1 of 2 12 LastLast

Similar Threads

  1. (Another) How to Record Your On WoW Videos. - Full Guide + Images
    By impulse102 in forum World of Warcraft Guides
    Replies: 9
    Last Post: 11-26-2006, 03:08 AM
  2. Bot that's able to get past images...
    By Kjetulf in forum Community Chat
    Replies: 4
    Last Post: 08-19-2006, 03:15 AM
  3. How to add Images?
    By Fault in forum WoW ME Questions and Requests
    Replies: 4
    Last Post: 08-17-2006, 05:54 PM
  4. Get rid of the nocopy.jpg images
    By jaymunee80 in forum Suggestions
    Replies: 2
    Last Post: 06-28-2006, 03:12 PM
  5. Your Favorite Image Editing Programs
    By LightWave in forum Community Chat
    Replies: 5
    Last Post: 06-15-2006, 08:02 PM
All times are GMT -5. The time now is 11:26 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search