Posts Tagged ‘image’

How to Enable Client-Side Caching of Resized Images

Saturday, March 1st, 2008

About a month ago, I wrote a tutorial on dynamically resizing images in PHP. Despite my best intentions, I never found the time to go back and rewrite the script to include server-side caching of the images created.

However, one reader asked if it was possible to enable a client-side cache of a dynamically resized image. It surely is, and it’s very simple.
(more…)

How to Use PHP To Dynamically Resize an Image

Wednesday, January 30th, 2008

Screenshot of a Dzone PageOne of the most annoying things about working with images is getting them into the right size. Screenshots start out huge – and you need to resize them to an appropriate size for your website.

Some blogs automatically resize the pictures for you into a thumbnail – like the image to the right. What if you want the image a different size, though? You could allow the browser to resize it for you, or – better yet – write your own php script to resize the image dynamically.
(more…)

What’s the Best Choice, Combination, and Placement of Adsense Ads?

Tuesday, January 29th, 2008

If you operate a website (like this blog), Google Adsense is probably one of your main streams of revenue. Although you may eventually outgrow Adsense, chances are you’ll have used it at some point.

While looking through my Adsense stats, I noticed an odd trend. This trend suggested a few things about monetizing a site through Adsense – questions that I don’t have an answer for yet, but that I will be looking for.

(more…)

How to Create a Gradient Background Image in GIMP

Thursday, January 24th, 2008

Sample Gradient BackgroundThe other day I wrote about how to add a gradient background to a css tooltip. So I thought it might be a good idea to walk through how to create the actual gradient image.

Since I recently switched to Ubuntu Linux, I don’t use Photoshop anymore. GIMP all the way. So this tutorial will show you briefly how to create a gradient image in GIMP and then use it as the background of an html element.
(more…)

How to Add a Gradient Background to a CSS Tooltip

Monday, January 21st, 2008

In an earlier post, we learned how to create a tooltipKind of like this boring, gray tooltip. using CSS. I walked you through the mechanics of creating the tooltip and left the actual css styling up to you.

Today, we’ll take a look at how to make this tooltip look a bit nicer – using a gradient background and some extra styling.

(more…)

Why Don’t My Images Appear in My HTML E-mail?

Wednesday, January 16th, 2008

I was browsing around the PHP forum on Daniweb and came across this problem in a post.

Here’s the situation.

The guy wanted to send out a newsletter, so he grabbed a pre-fabbed newsletter script. The PHP script seemed to work fine – it read an HTML template and then fired off the e-mail in HTML form.

There was just one problem: none of the images were appearing in the HTML e-mail when he tried to view it.
(more…)