How to upload and resize an image to database?
Hi there 🙂
I’ve build my own theme for a site and I’ve got a problem that I can’t solve myself. I hope this post is in the right section. I didn’t know if it should be under themes or plugins.
After searching often, te last couple of weeks, for the right plugin, I’ve come to your help…
For this site (on temp location:) http://www.vandevooren.nl/temp/wonderzine , I’m looking for a way to upload a photo in three sizes, and then portray it in the different size, depending on where we are.
You see, if an article is new, the photo should be displayed 380px width. If it’s older, it should only be a thumbnail: 72 x 72 px. Same with the categories. But then when you have a look at the article page itself, it will display the image 129px width and height.
So one image should be uploaded in three sizes, and then be called by something like <?php the_image_size2($post_id) ?>
but my problem is that I’m not good at php, and thus can’t make this myself… 🙁
Is there anyone who knows anything that might help me?
- The topic ‘How to upload and resize an image to database?’ is closed to new replies.