Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Best Way of Drawing Tree Trunk

Posted on 2006-07-20
Medium Priority
Last Modified: 2010-04-06
Hi all,
I'm making graphics for a site that require me to draw a tree trunk along the site of the web page. I already have a large amount of graphics and a flash video on the page so I want to minimise the file size this image. I had the idea that I could draw the outer part of the tree myself and place this small image around a rectangular vector I could create in Dreamweaver. As this rectangle would be mono-colour it would load in the browser instantly and the browser would then only have to load the small image file for the outer part of the trunk. Does this seem it a good idea or is it more hassle than its worth?
Any suggestions would be greatly appreciated!
Question by:dereksheahan
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
LVL 18

Assisted Solution

by:Jose Parrot
Jose Parrot earned 800 total points
ID: 17157147
Hi dereksheahan,

If you need just the trunk, and if I am understanding correctly, why not use just one image, say 800w x 200h, tiled?

LVL 26

Accepted Solution

David Brugge earned 800 total points
ID: 17173185
Just to elaborate on Jose's suggestion, you could make a tall narrow table say two rows high and twenty columns wide.
Then fill the table with a tall, narrow jpeg of a strip of bark. Repeat the same image 20 times. Then span the bottom row with the base of the trunk.
The browser will only need download the tall narrow image (which, because of the rough texture could be very highly compressed) once. Since all of the other table cells reference the same image, the browser will fetch it from its cache.

/ just an idea.
LVL 18

Expert Comment

by:Jose Parrot
ID: 17180039
Yes, D_Brugge, that's the idea. to download just one image and repeat it.

Author Comment

ID: 17182132
Hi guys,
Thanks for you're input. Yes D_Brugge, perhaps that might be the best way to try it. Not sure if the image will need to be more complicated than that though. I'll give it a go when our artist gets back in a couple of days.
LVL 26

Expert Comment

by:David Brugge
ID: 17189682
Well I give credit to JoseParrot,
He got me thinking about tiling.

I hope it works out for you.

-David B

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Keep your audience engaged and get the most out of your next presentation with these quick Prezi tips.
Many programs have tried to outwit PowerPoint in terms of technology and skill. These programs, however, still lack several characteristics that PowerPoint has possessed from the start. Here's why PowerPoint replacements won't entirely work for desi…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Add visuals to your Prezi to keep your audience engaged. Learn how to embed images, edit them, and more in this video micro tutorial. Select "Insert" from the top menu in your Prezi editor: Select "Image": A toolbar will pop in from the right …
Suggested Courses

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question