Communauté Informatique NDFR.net : Nettoyer son écran plat - Matériel
 
Nettoyer son écran plat
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #33  
Old 31-08-2006, 16:15
whynot's Avatar
whynot whynot is offline
Membre senior
 
Join Date: 31-12-2003
Location: -
Posts: 772
Zou comme prévu, v'là une photo (floue) de la merveille ... grml en fait on voit pas grand chose mais bon. Pis ça m'a fait penser que ça fait un bout de temps que j'ai pas filé de screenshot tiens. Voilou donc en images attachées.

Ubuntu 6.06.1 (plus que quelques backups et zou pour une Edgy Knot2), avec un zôli fond d'écran que j'ai chopé chaisplusoù, et un thème Clearlooks / windowborders Resilience / icônes Tango (Canonical, le marron c'est gentil mais non merci).

Note (le bash c'est bon, mangezen) : trouvé un script bash/imagemagick excellentissime (décidément) chaiplusoù pour créer des thumbnails commes ceux ci dessous, siz'êtesintéressés hében le v'là. On colle ça dans un thumbnail.sh, chmod +x thumbnail.sh et ./thumbnail.sh image1 image2...
Code:
#!/bin/bash
 
# verifying usage
if [ "$#" = "0" -o "$1" = "-h" -o "$1" = "--help" ]; then
    echo Usage : $(basename $0) image [ image ... ]
    echo Used to generate thumbnails of a list of images.
    exit 1
fi
 
# loop that enables the treatment of a list of images
for i in "$@"; do
    # verifying file
    if [ -f "$i" ]; then
        # get image infos
        iinfos=$(identify -format "%m:%wx%h:%t:%e:%b" "$i")
 
        # get image type
        itype=$(echo $iinfos | awk -F":" '{print $1}')
 
        # get image resolution
        resolution=$(echo $iinfos | awk -F":" '{print $2}')
 
        # get image name, without extension
        name=$(echo $iinfos | awk -F":" '{print $3}')
 
        # get extension
        extension=$(echo $iinfos | awk -F":" '{print $4}')
 
        # get image size
        size=$(echo $iinfos | awk -F":" '{print $5}')
 
        # convert size to human readable format
        if [ $size -ge 1048576 ]; then
            sizeh="$(( size / 1048576 )) Mo"
        elif [ $size -ge 1024 ]; then
            sizeh="$(( size / 1024 )) Ko"
        else
            sizeh="$size o"
        fi
 
        # resize image and add infos
        convert "$i" -resize 400x200 -gravity South -background Black -fill white -splice 0x18 -draw "text 0,2 '$itype : $resolution - $sizeh'" "$name"-thumb.$extension
    else
        echo "$i" : file does not exist
    fi
done
Attached Images
File Type: jpg berk.jpg (42.9 KB, 18 views)
File Type: jpg whynot-buntu.jpg (97.9 KB, 17 views)
__________________
Document hautement conseillé pour obtenir une réponse aux questions.
Ami trolleur (en fait non), clique ici.
Reply With Quote
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Votre avis sur écran plat 17" bastien Matériel 7 14-01-2005 09:08
Écran à l'envers Adrenalys Windows NT4/2000/XP Client 9 04-05-2004 18:17
Pb CG ATI 7500 et Ecran TFT shp13 Matériel 3 16-02-2004 08:35
Avis sur un écran plat stan Matériel 7 14-01-2004 15:06
nouvel écran Junta_ Matériel 18 03-01-2003 08:51

All times are GMT +2. The time now is 00:11.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.