Page 3 of 10 FirstFirst 12345 ... LastLast
Results 21 to 30 of 97

Thread: DVD Cover Art

  1. #21
    Join Date
    Feb 2005
    Beans
    84

    Re: DVD Cover Art

    m0biu5, I know nothing of PHP and have no idea how to implement what you are talking about. Maybe my younger brother can help me with that.

    hazza96, your code woks nicely. Thanks.

    I also found this code on the Internet somewhere. It displays the filesize as well as a thumbnail if desired. Just read the comments to see where to place the "#icon" tag to get a thumbnail. This is in http://www.pegasus.rutgers.edu/~pax/index.old2.php. Having the following code be able to alphabetize would be ideal. Otherwise I'll just keep using the second bit of code you posted. it worls well.
    Code:
    <html>
    <body>
    <?php
            // handy humansize function:
            // input is number of bytes, output is a "human-readable" filesize st\ring
            function humansize($size) {
    
                    // Setup some common file size measurements.
                    $kb = 1024;         // Kilobyte
                    $mb = 1024 * $kb;   // Megabyte
                    $gb = 1024 * $mb;   // Gigabyte
                    $tb = 1024 * $gb;   // Terabyte
    
                    if($size < $kb) return $size."B";
                    else if($size < $mb) return round($size/$kb,0)."KB";
                    else if($size < $gb) return round($size/$mb,0)."MB";
                    else if($size < $tb) return round($size/$gb,0)."GB";
                    else return round($size/$tb,2)."TB";
            }
    
            // get local directory path
            $path= dirname($_SERVER['SCRIPT_FILENAME']);
    ?>
    
    <h3>Files in <?php print $path; ?>:</h3>
    <ul>
    <?php
            $d = dir($path);
            $icon = '';
    
            while (false !== ($entry = $d->read())) {
                    if ( substr($entry, 0, 1)=='.' ) continue;
    
                    // get size
                    if ( substr($entry, 0, 1)=='.' ) continue;
    
                    // get size
                    $size = filesize($path.'/'.$entry);
                    $humansize = humansize($size);
    
                    // find filename extension
                    $dotpos = strrpos($entry, '.');
    
                    // creates the thumbnails
                    if ($dotpos) {
                            $ext = substr($entry, $dotpos+1);
                            if ($ext === 'jpeg' || $ext === 'gif' || $ext === 'pn\g') {
                                    $icon = "<img src='$entry' style='width: 50p\x; height: auto; vertical-align: text-top;' alt='icon' title='$entry' />";
                            }
                    }
                    print "<li><a href='$entry'>$entry</a> ($humansize)</li>\n"; \//place "$icon" in the text to show a thumbnail.
                    $icon= '';
            }
            $d->close();
    ?>
    </ul>
    <hr width="100%">

  2. #22
    Join Date
    May 2005
    Beans
    107
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: DVD Cover Art

    Quote Originally Posted by charlie763
    m0biu5, I know nothing of PHP and have no idea how to implement what you are talking about. Maybe my younger brother can help me with that.
    Ah, very sorry. Would have done it out for you.

  3. #23
    Join Date
    Feb 2005
    Beans
    84

    Re: DVD Cover Art

    Ta dah! I did a google search for "Breezy SVG" and came up with this link. I don't know if there is any official Breezy yet or if there ever will ever be one, but this particular badger was submitted and is good enough for now.

    I'm pretty sure that this is a less than ideal graphic of Breezy for the final product, but is perfect for displaying what I have in my head. I'd like to have Breezy looking to the right or at the observer. This would free up some space to the left of Breezy and would allow me to move Breezy and the orange bar to the left a bit.

    Thanks for all the help with the php, folks. The directory is sooOO much nicer to look at.

    Here is the latest data.
    DVD_Cover-2005.06.03.svg SVG file
    Ubuntu_DVD_Cover-2005.06.03.zip working files

    Thumbnail of the most recent image:

  4. #24
    Join Date
    Mar 2005
    Location
    Netherlands
    Beans
    734
    Distro
    Ubuntu Karmic Koala (testing)

    Re: DVD Cover Art

    Very nice The front still looks very empty...
    Last edited by UbuWu; June 4th, 2005 at 12:33 PM.

  5. #25
    Join Date
    Mar 2005
    Location
    Netherlands
    Beans
    734
    Distro
    Ubuntu Karmic Koala (testing)

    Re: DVD Cover Art

    I would take the screenshots from a standard non-customized ubuntu install and make them a little bit more interesting. Something like these two:
    http://shots.osdir.com/slideshows/sl...e=342&slide=36
    http://shots.osdir.com/slideshows/sl...e=342&slide=37

  6. #26
    Join Date
    Feb 2005
    Beans
    84

    Re: DVD Cover Art

    Quote Originally Posted by UbuWu
    Very nice The front still looks very empty...
    I agree. I want to put a nice gradient on the background of the whole cover from a darker color on the outter edges to a lighter color in the center. Possibly even from the upper right and lower. Before I do this I need to play with the background logo on the rear cover. The way that background logo is made there is a ring around the darker parts that is the same color as the current background. Download the SVC and check it out for yourself.

    Has anyone printed a cover yet? I've printed a few proofs and the colors on my screen are a bit darker than the color that is printing out. I'm wondering if it is my printer, my screen, or the way the SVG is. I think it may be partly due to the regular paper I'm using. I need to grab some heavier, brighter stock. In any event, I'd be interested to know if anyone is using this.

    I have gotten in contact with Tobias, the creator of the Breezy currently on the cover, who has asked me to contact him if I need "any kind of support with these graphics." Danke, Tobias.
    Last edited by charlie763; June 5th, 2005 at 07:04 AM.

  7. #27
    Join Date
    Jun 2005
    Location
    Deutschland
    Beans
    9

    Smile Re: DVD Cover Art

    I really like the DVD case cover! I had never thought about reusing those CD cases for a project like this.

  8. #28
    Join Date
    Apr 2005
    Beans
    177

    Re: DVD Cover Art

    Quote Originally Posted by UbuWu
    I would take the screenshots from a standard non-customized ubuntu install
    Similar place for generic Ubuntu screenshots from the default install:

    http://opensourceversus.com/modules....rder=0&thold=0
    [ Synthetic Intelligent Organism Normally for Infiltration and Dangerous Exploration ]

  9. #29
    Join Date
    Jul 2005
    Beans
    1

    Re: DVD Cover Art

    I just quickly had a look at the thing in Inkscape, and maybe found waht the front might be missing. This is more or less just a mockup, probably needs tweaking. I wanted to introduce the speed advantage of using Linux into the cover. So now the nadger is riding the line, and there's other ones...



    - big version
    - svg version

    Hope anyone likes my inspiration

  10. #30
    Join Date
    Apr 2005
    Location
    Norway
    Beans
    150
    Distro
    Ubuntu Development Release

    Re: DVD Cover Art

    Quote Originally Posted by charlie763
    I updated the image a bit by changing the background color and adding a background graphic to the back cover. A directory containing my work can be found at:
    http://pegasus.rutgers.edu/~pax
    http://www.pegasus.rutgers.edu/~pax/...05.05.31-2.svg SVG file

    Here is an updated thumbnail:
    Real nice work. I wish I could be that creative myself

Page 3 of 10 FirstFirst 12345 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •