Image resizing

Using 3rd party components while essential, can also be a headache. All to often you can find yourself spending hours following the setup instructions to the letter only for it to not work. Other times you know it’s the exact component you want to use but it seems while the guys may have spent a huge effort in writing to component they seemingly never got round to writing anything to tell you how to use it.

Every so often though I come across a component that works first time and does exactly what you want. One such component that I’ve found this with recently ImageResizer.

I needed a simple way for images to be resized for a product listing on an eCommerce platform written in Classic ASP. Image resizing can be a real pain, there’s the decision of do you do it when the images are uploaded or on the fly, if you do it on the fly there’s a a huge number of mistakes you can make and nearly every example of how to do image resizing includes a couple of them. Then lastly in either scenario you need to make sure the end result is actually decent quality.

With image resizer I was done in 5 minutes! It’s actually a .net component rather than Classic ASP but that wasn’t an issue. You create a bin folder, add a couple of simple lines to your web.config file then put an extra extension on the image path plus parameters for the size you want and that’s it!

If your doing a .net project it’s also available on NuGet making it even easier to get up and running.

Advertisements

Improve productivity by ignoring emails

Do you find your most productive at the very start of the day following all those lovely hours of sleep? But do you also find you spend the first hour or 2 at work reading through emails only to then discover its coming up to lunch and you haven’t achieved much actual work?

This is a problem many of us face and often it can lead to having a feeling of being behind for the rest of the day, which ultimately lowers our performance for the rest of the day.

The solution is simple, Don’t open your email! Ok obviously at some point you will have to, but rather than first thing, try getting an hour of worm done first. This way you’ve got something done that you can feel good about before trawling through all those emails followed by a break for lunch.