HOW TO: Add Stark like covers

Media Browser Tutorial ONLY (strictly enforced)

Re: Stark like covers in Coverflow

Postby DemonSeed » Thu Apr 30, 2009 5:17 pm

Ok so it isnt in the user folder but in the program folder?
DemonSeed
 
Posts: 1466
Joined: Tue Mar 17, 2009 3:43 pm
Location: Charlotte,NC

Re: Stark like covers in Coverflow

Postby APorter » Thu Apr 30, 2009 5:34 pm

DemonSeed wrote:Ok so it isnt in the user folder but in the program folder?


That's where I saved the StarkCovers.scm file and it worked fine.
APorter
 
Posts: 189
Joined: Thu Mar 19, 2009 12:12 am

Re: Stark like covers in Coverflow

Postby DemonSeed » Thu Apr 30, 2009 5:45 pm

Got it working Thanks man
DemonSeed
 
Posts: 1466
Joined: Tue Mar 17, 2009 3:43 pm
Location: Charlotte,NC

Re: Stark like covers in Coverflow

Postby tyborg » Thu Apr 30, 2009 8:32 pm

APorter wrote:Thanks for posting. I ran this last night without any problems. What happens when you add a new movie to a folder that is part of the .bat file?


Ooops replied without looking. I missed an entire page of comments, but for clarification, just rerun the app. The app looks in subfolders for folder.jpg files and the ones that have already been done are renamed to folderbkp.jpg and are thus ignored. You can schedule this to run behind the scenes as long as you remove the pause statement from your batch file.
tyborg
 
Posts: 258
Joined: Sun Feb 22, 2009 4:03 am

Re: Stark like covers in Default Coverflow

Postby markkeogh » Fri May 01, 2009 2:21 am

tyborg wrote:I wish I knew how to hardcode something like this into the source code to create the effect on your images.

This is 99.9% there, but I have to get back to doing my actual work so can't finish it ;-) The only issue outstanding is the rounded and merged image has thin lines on it from the FillRectange I suspect. You'll see what I mean when you run it.

It's quick, dirty and needs tidying up but should do the things your after. I got the FillRoundedRectangle function off the net sometime ago for just such an occasion.

Code: Select all
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;

namespace ConsoleApplication18
{
    class Program
    {
        static void Main(string[] args)
        {
            RoundAndSave(MergeImages(new Bitmap(@"C:\28_Weeks_Later.jpg")));
        }

        private static Bitmap MergeImages(Bitmap image)
        {
            Bitmap imageMerged = image;
            Graphics mergedGraphics = Graphics.FromImage(image);
            Rectangle rectangle = new Rectangle(0, 0, image.Width, image.Height);

            mergedGraphics.InterpolationMode = InterpolationMode.HighQualityBicubic;
            mergedGraphics.SmoothingMode = SmoothingMode.AntiAlias;
            mergedGraphics.PixelOffsetMode = PixelOffsetMode.HighQuality;
            mergedGraphics.CompositingQuality = CompositingQuality.HighQuality;

            mergedGraphics.DrawImage(image, rectangle);
            mergedGraphics.DrawImage(ResizeBitmap(Properties.Resources.Overlay, image.Width, image.Height), rectangle);
            mergedGraphics.Save();

            return imageMerged;
        }

        private static void RoundAndSave(Bitmap image)
        {
            Bitmap bitmap = new Bitmap(image.Width, image.Height);
            Graphics g = Graphics.FromImage(bitmap);

            g.Clear(Color.Transparent);
            g.SmoothingMode = SmoothingMode.AntiAlias;
            FillRoundedRectangle(g, new Rectangle(0, 0, bitmap.Width, bitmap.Height), 150, new TextureBrush(image));
            g.Dispose();
           
            bitmap.Save(@"c:\28_Weeks_Later_Rounded.png", ImageFormat.Png);
        }

        public static Bitmap ResizeBitmap(Bitmap bitmap, int width, int height)
        {
            Bitmap result = new Bitmap(width, height);
            using (Graphics g = Graphics.FromImage(result))
            {
                g.DrawImage(bitmap, 0, 0, width, height);
            }
            return result;
        }

        public static void FillRoundedRectangle(Graphics g, Rectangle r, int d, Brush b)
        {
            g.FillPie(b, r.X, r.Y, d, d, 180, 90);
            g.FillPie(b, r.X + r.Width - d, r.Y, d, d, 270, 90);
            g.FillPie(b, r.X, r.Y + r.Height - d, d, d, 90, 90);
            g.FillPie(b, r.X + r.Width - d, r.Y + r.Height - d, d, d, 0, 90);
            g.FillRectangle(b, r.X + d / 2, r.Y, r.Width - d, d / 2);
            g.FillRectangle(b, r.X, r.Y + d / 2, r.Width, r.Height - d);
            g.FillRectangle(b, r.X + d / 2, r.Y + r.Height - d / 2, r.Width - d, d / 2);
        }
    }
}
Last edited by markkeogh on Fri May 01, 2009 6:05 am, edited 1 time in total.
markkeogh
 
Posts: 9
Joined: Fri Apr 17, 2009 12:16 am

Re: Stark like covers in Coverflow

Postby DemonSeed » Fri May 01, 2009 3:06 am

Tyborg,
I just wanted to say thanks for sharing such a cool new way to mod Media Browser.
I have done all of mine and I love my new look. Thanks to you!
Image

But I do have A question for you.
Would it be possible to use this method to do this to my covers as well?


Image


I do have the psd that UltimaUser made available so I can probably do whatever I need to, to make this happen but would love some help.
UltimaUser did his by hand through photoshop, and I think it was the other way round, pic on top!
And as you can see my collection is quit large so this isn't an option!
But I'm not quite sure how to pull it off? Would it be possible to use the psd and create a new overlay png?
And a new Bat.Code that will do the new png's that just got created?
Thanks again for everything so far!
DemonSeed
Last edited by DemonSeed on Fri May 01, 2009 4:29 am, edited 14 times in total.
DemonSeed
 
Posts: 1466
Joined: Tue Mar 17, 2009 3:43 pm
Location: Charlotte,NC

Re: Stark like covers in Coverflow

Postby marclile » Fri May 01, 2009 3:12 am

DemonSeed wrote:Tyborg,
I just wanted to say thanks for sharing such a cool new way to mod Media Browser. I have done all of mine and I love my new look.
But I do have A question for you would it be possible to use this method to do this to my covers as well?

Image


I do have the psd that UltimaUser made available so I can probably do whatever I need to, to make this happen but would love some help.
Thanks again for everything so far!
DemonSeed


I would be very interested in changing my covers to look like that as well.
marclile
 
Posts: 16
Joined: Fri Apr 24, 2009 3:36 am

Re: Stark like covers in Default Coverflow

Postby tyborg » Fri May 01, 2009 2:11 pm

markkeogh wrote:
tyborg wrote:I wish I knew how to hardcode something like this into the source code to create the effect on your images.

This is 99.9% there, but I have to get back to doing my actual work so can't finish it ;-) The only issue outstanding is the rounded and merged image has thin lines on it from the FillRectange I suspect. You'll see what I mean when you run it.

It's quick, dirty and needs tidying up but should do the things your after. I got the FillRoundedRectangle function off the net sometime ago for just such an occasion.

Code: Select all
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;

namespace ConsoleApplication18
{
    class Program
    {
        static void Main(string[] args)
        {
            RoundAndSave(MergeImages(new Bitmap(@"C:\28_Weeks_Later.jpg")));
        }

        private static Bitmap MergeImages(Bitmap image)
        {
            Bitmap imageMerged = image;
            Graphics mergedGraphics = Graphics.FromImage(image);
            Rectangle rectangle = new Rectangle(0, 0, image.Width, image.Height);

            mergedGraphics.InterpolationMode = InterpolationMode.HighQualityBicubic;
            mergedGraphics.SmoothingMode = SmoothingMode.AntiAlias;
            mergedGraphics.PixelOffsetMode = PixelOffsetMode.HighQuality;
            mergedGraphics.CompositingQuality = CompositingQuality.HighQuality;

            mergedGraphics.DrawImage(image, rectangle);
            mergedGraphics.DrawImage(ResizeBitmap(Properties.Resources.Overlay, image.Width, image.Height), rectangle);
            mergedGraphics.Save();

            return imageMerged;
        }

        private static void RoundAndSave(Bitmap image)
        {
            Bitmap bitmap = new Bitmap(image.Width, image.Height);
            Graphics g = Graphics.FromImage(bitmap);

            g.Clear(Color.Transparent);
            g.SmoothingMode = SmoothingMode.AntiAlias;
            FillRoundedRectangle(g, new Rectangle(0, 0, bitmap.Width, bitmap.Height), 150, new TextureBrush(image));
            g.Dispose();
           
            bitmap.Save(@"c:\28_Weeks_Later_Rounded.png", ImageFormat.Png);
        }

        public static Bitmap ResizeBitmap(Bitmap bitmap, int width, int height)
        {
            Bitmap result = new Bitmap(width, height);
            using (Graphics g = Graphics.FromImage(result))
            {
                g.DrawImage(bitmap, 0, 0, width, height);
            }
            return result;
        }

        public static void FillRoundedRectangle(Graphics g, Rectangle r, int d, Brush b)
        {
            g.FillPie(b, r.X, r.Y, d, d, 180, 90);
            g.FillPie(b, r.X + r.Width - d, r.Y, d, d, 270, 90);
            g.FillPie(b, r.X, r.Y + r.Height - d, d, d, 90, 90);
            g.FillPie(b, r.X + r.Width - d, r.Y + r.Height - d, d, d, 0, 90);
            g.FillRectangle(b, r.X + d / 2, r.Y, r.Width - d, d / 2);
            g.FillRectangle(b, r.X, r.Y + d / 2, r.Width, r.Height - d);
            g.FillRectangle(b, r.X + d / 2, r.Y + r.Height - d / 2, r.Width - d, d / 2);
        }
    }
}



Nice!! Unfortunately I am on the road with limited internet and an old P3 laptop. I don't have anything on it to compile this right now. I will play with it when I get back to civilization next week.

@DemonSeed and marclile yes that is possible but again I can't do anything until I'm back to civilization and my PC next week. If you wanted to look at scheme and gimp scripting you could probably figure it out before I get back. You can do this by altering the StarkCovers.scm script and then running the StarkCovers.exe again after -revertjpg to get all your folder.jpg images back.
tyborg
 
Posts: 258
Joined: Sun Feb 22, 2009 4:03 am

Re: Stark like covers in Coverflow

Postby DemonSeed » Fri May 01, 2009 2:54 pm

Thanks for the reply,
I am not to good at things that require coding so if you don't mind I'm just going to wait on your return. :D

DemonSeed
Last edited by DemonSeed on Mon May 04, 2009 4:54 am, edited 1 time in total.
DemonSeed
 
Posts: 1466
Joined: Tue Mar 17, 2009 3:43 pm
Location: Charlotte,NC

Re: Stark like covers in Coverflow

Postby Ultimate User » Sat May 02, 2009 2:11 am

You do know that Photoshop can run scripts too? It should be quite easy to set one up to give all your images the same effect.
Ultimate User
 
Posts: 124
Joined: Fri Feb 20, 2009 7:33 am

PreviousNext

Return to Tutorials



Who is online

Users browsing this forum: No registered users and 1 guest

cron