Sure, there are tons of ways. But I find image magick the easiest. Now, I could give another way of doing it, but since you don't want to use image magick, I presume there's a reason for that. And that reason could apply to hundreds of other ways as well. If you could tell why you don't want to use image magick, we might be able to supply you with a useful alternative, instead of having to guess what's acceptable for you.