CodeCanyon

CSS Auto Sprites

  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Bought between 1 and 9 items
  • Europe
Swifty_core says

Really nice work! It seems to be a good alternative before switching to a CDN …

Nice job!

2 years ago
  • Has been a member for 4-5 years
  • Exclusive Author
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
Patrick10128 says

This looks really great. Any chance it could become a WordPress plugin as well?

2 years ago
Author
gbsmith71 gbsmith71 replied

There’s no reason why you couldn’t use it with WordPress now. Perhaps you can tell me how you would see it adding value as a Plugin, and I can look at it for version 2.

2 years ago
Purchased
Patrick10128 Patrick10128 replied

Apologies, I hadn’t realized how simple and easy to use this script was! I just purchased and downloaded. I tested it out on WordPress and it worked great, so maybe a WordPress plugin may not be necessary. I was thinking of somesort of plugin which would replace all the css for you in your theme’s style.css. It would probably have to have a basic backend page in which you configure where the images are located and other settings like the file type.

What would really by fantastic is integration with W3 Total Cache’s (http://wordpress.org/extend/plugins/w3-total-cache/) CDN feature. So for instance you configure the settings (basically where the images of your theme are located) and then the script would generate a sprite, save the image in your theme folder and then tell W3 Total Cache to upload it to the CDN . And then maybe run through your style.css and change the background images to locate the sprite instead.

I dunno, what do you think, is it too much work for something so simple?

2 years ago
Author
gbsmith71 gbsmith71 replied

All good ideas, when I get a chance I’ll look into it and see what it would take.

Cheers,

Gavin

2 years ago
  • Has been a member for 2-3 years
  • Bought between 50 and 99 items
landarts says
Purchased

I purchased the sprite package. Can you give me an example walk through of how to use the package with a new website?

Jim

2 years ago
Author
gbsmith71 gbsmith71 replied

Have you read the documentation? PM me and I will try to fill in the gaps for you.

2 years ago
  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 1 000 and 5 000 dollars
  • Bought between 10 and 49 items
jspicher says

Very neat idea!

2 years ago
Author
gbsmith71 gbsmith71 replied

Thanks for the positive comment

2 years ago
  • Has been a member for 3-4 years
  • Won a Competition
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Contributed a Blog Post
  • Author had a File in an Envato Bundle
  • Most Wanted Bounty Winner
  • Community Moderator
  • Author had a Free File of the Month
  • Beta Tester
  • Exclusive Author
  • Sold between 250 000 and 1 000 000 dollars
  • Elite Author
  • Bought between 10 and 49 items
  • Australia
  • Referred between 200 and 499 users
dtbaker says

awesome stuff !

2 years ago
Author
gbsmith71 gbsmith71 replied

Thanks for that. I’m just starting out here, and very happy so far.

You’ve gor a great collection of stuff, keep up the great work.

2 years ago
  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Bought between 100 and 499 items
  • United States
  • Referred between 1 and 9 users
blazedd says
Purchased

I love this, this saved my Team hours of work in creating sprites and getting their height and width. Allow me to make a few suggestions.

1. Animated GIFs 2. All Formats into one image of a single format.

Details

1. Allow animated GIF images to be combined with non animated ones into one giant animated GIF . (imagick could do this easy, as a sub feature for those with imagick installed.) 2. Lets say you have 3 images. A transparent GIF , a transparent PNG , and a JPG pictures of a dog. You might want to make one solid PNG sprite.

Thanks, Love this! Keep it coming!

2 years ago
Author
gbsmith71 gbsmith71 replied

Terrific, glad it helped. Those are all great suggestions. I’ll look at it for the next version, of course file size then becomes the next concern.

Thanks

2 years ago
  • Has been a member for 1-2 years
  • Bought between 1 and 9 items
ivanz says
Purchased

Hello Gavin, I bought your script that works really well, I need two changes above, is it possible to reach you by mail for the details of the two changes and the price. (Sorry for my English). Thank you.

2 years ago
Author
gbsmith71 gbsmith71 replied

Sure,

My email address is in the cocumentation, or you can contact me via my profile page here – http://codecanyon.net/user/gbsmith71 (form on bottom right of page)

Look forward to hearing from you.

2 years ago
  • Has been a member for 4-5 years
  • Exclusive Author
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
Patrick10128 says
Purchased

Hi Gavin, I can’t seem to get this script to work on any of my local machines for some reason, which is peculiar cause it works fine on my MediaTemple server. I sent you an email a while back, but I’m not sure if you got it.

Please let me know when you get a chance.

Thanks, Patrick

2 years ago
  • Has been a member for 0-1 years
  • Bought between 10 and 49 items
williamjames says
Purchased

Please release version 2 with a generator to select all possible values and output an url :)

11 months ago
Author
gbsmith71 gbsmith71 replied

I’m sorry, I’m not sure what you mean by this?

11 months ago
  • Has been a member for 0-1 years
  • Bought between 10 and 49 items
williamjames says
Purchased

Hi sir, your script is very useful to me and don’t have to generate thumbnails manually via photoshop. However I want to resize the image.

sprites.php?type=jpg&dir=imagefolder&width=120&height=90 << Please modify a bit of your code for me to get the output I want when I type that url… thank you in advance!

11 months ago
  • Has been a member for 0-1 years
  • Bought between 10 and 49 items
williamjames says
Purchased

Better also if it can detect all type of images and mix them up together.

And now I have to go back to photoshop and combine png and jpg images into one.

11 months ago
Author
gbsmith71 gbsmith71 replied

I’m against that idea for a couple of reasons. Firstly, transparency. Jpgs do not support transparency, so if you combine everything to a jpg you will lose png transparency. Secondly, compression and file size. Because png-24 does not have compression, combining all jpgs and pngs to a png file will result in a very large file.

11 months ago
  • Has been a member for 0-1 years
  • Bought between 10 and 49 items
williamjames says
Purchased

I just converted all images in one folder to the same type so no issue for me there :)

Letting me use this: sprites.php?type=jpg&dir=imagefolder&width=120&height=90

will make your script perfect! What I am doing is resizing images before uploading it.

Nevertheless the script is still very useful for me :)

11 months ago
  • Has been a member for 1-2 years
  • Exclusive Author
  • Bought between 100 and 499 items
  • Netherlands
Iffie says
Purchased

You just made life a lot easier. Great work! 5 stars worth purchasing. Easy and good documentation.

8 months ago
Author
gbsmith71 gbsmith71 replied

Thanks for the feedback, glad you can use it

8 months ago
  • Has been a member for 1-2 years
  • Bought between 50 and 99 items
silencespr says
Purchased

i am a bit lost with the installation do i put this in the root of my FTP Public_html ? or do i add it to my Layout Images folder?

Thank you.

7 months ago
Author
gbsmith71 gbsmith71 replied

It doesn’t matter where you put it, but your images need to be in the same folder as sprites.php.

7 months ago
  • Has been a member for 0-1 years
  • Bought between 1 and 9 items
biikar1 says
Purchased

Why this script doesn’t align the individual images and combine all the images with different dimensions beside each other?

This script should calculate the width and height of every individual image and put them beside each other as close as possible.

I’m having wide gaps (empty spaces) between images which actually defeat the very same reason I wanted to combine small images in the first place.

To understand what i mean, see this sprite, which actually should be done like this

As it is now, I’m very disappointed that you didn’t mention this crucial shortcoming in the descriptions.

5 months ago
  • Has been a member for 0-1 years
  • Exclusive Author
  • Bought between 10 and 49 items
  • India
agileinfo says

I have a wordpress theme.. i want to create css sprites for it.. can this help?

4 months ago
Author
gbsmith71 gbsmith71 replied

It’s really independent of any framework, so yes, you could use it with wordpress or any other PHP based site.

4 months ago
  • Has been a member for 1-2 years
  • Bought between 50 and 99 items
mohalam says

I would like it to be a plugin of wordpress, are you considering to do that?

4 months ago
Author
gbsmith71 gbsmith71 replied

How do you see that working? CSS sprites are more of a theme thing, so not sure how making it a plugin would be any better than having it standalone, which will still work with wordpress.

Can you give me your thoughts.

Thanks

4 months ago
  • Has been a member for 1-2 years
  • Bought between 50 and 99 items
  • United Arab Emirates
lhamza says
Purchased

Hey man, Does it create/ combine the images into one ? or we should do it manually ?

1 month ago
Author
gbsmith71 gbsmith71 replied

It creates a single image.

1 month ago
  • Has been a member for 1-2 years
  • Bought between 10 and 49 items
silverz says
Purchased

sorry but i’m still unclear how to use this beyond placing the sprites.php file in the root. If I have image files in various directories(and not all of the image files in each directory need this plugin) what can I do ?

28 days ago
Author
gbsmith71 gbsmith71 replied

You need to have the sprites.php file in a folder and then have your image files in the same folder or in subfolders which you would then reference with dir=

It can only build one master sprite image for eac type of image in each folder.

28 days ago
Purchased
Default-user silverz replied

ok i’m getting closer. The original css for an image is:

.middle { clear:none; background:url(images/bg_content_mid.png) center center repeat-y;}

the sprites css that was generated is:

.container li{list-style:none;text-indent:none}.container li a{background:url(http://www.domain.com/sprites/sprites.php?type=png) no-repeat top left;display:block;text-decoration:none}.container li .bg_content_mid{background-position:0px -0px;width:1020px;height:2px}

I’m not sure what is the next step. Thank you kindly for helping a newbie

28 days ago
Author
gbsmith71 gbsmith71 replied

Try this:

.middle{background:url(http://www.domain.com/sprites/sprites.php?type=png) no-repeat 0px -0px;width:1020px;height:2px;display:block;text-decoration:none}

28 days ago

by
by
by
by
by