• Hi,
    any way to automatically resize the files you upload in MEDIA? It would help me to reduce space and a full size at W1024max H768max would be nice.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Yes… WordPress automatically makes 3 different sized images for you. You can adjust the settings in “Settings” -> “Media”

    Thread Starter flapane

    (@flapane)

    Hi
    yes, I already set them, with big size being 1024×768, but if you go here http://www.flapane.com/blog/2009/03/howto-airport-extreme-n-e-linux-stampare-via-airport/
    and open for example the last thumbnail (that photo of a print test page), you will see an image that has not been resized, with a height bigger than 768.

    Thread Starter flapane

    (@flapane)

    bump

    ok… I see. Unfortunately, WordPress does not resize the actual image that you upload. It creates 3 smaller versions of it, leaving the uploaded image untouched. I would suggest that you create all of your images at 1024×768 before you upload them.

    Another solution would be to link to the “big-sized” image when you “Insert into Post”… unfortunately, you would have to know the filename of the large image. I check the source code and this part of the media system does not appear to be pluggable.

    Another option may be to check out this plugin:
    http://wordpress.org/extend/plugins/nextgen-gallery/

    Lots of people use it and it may help you out.

    Best of luck.

    Thread Starter flapane

    (@flapane)

    Ah next gen gallery, I have heard ot it. I wouldn’t want to use it as I already have a Coppermine gallery.
    Maybe I could create a hidden album where to upload and resize WordPress stuff, or probably I’ll resize the images locally before uploading them.
    Thanks, anyway 🙂
    Flavio

    I have the settings set in Media Settings -> Image sizes

    However, I can’t select anything other than full size when inserting the pic into a post. Is there somewhere where I need to set some GD or ImageMagick setting for it to work?

    I use a script called phpThumb

    You can view it here:

    Original image:

    http://www.thehypefactor.com/wp-content/uploads/2009/03/in-a-perfect-world.jpg

    Cropped image:

    http://www.thehypefactor.com/wp-content/themes/wp-comfy/scripts/phpThumb/phpThumb.php?src=/wp-content/uploads/2009/03/in-a-perfect-world.jpg&w=180&h=130&zc=T&q=80

    Note the code you just simply do <img src=”URLHERE”>

    &w=180&h=130&zc=T&q=80

    width, height, and quality

    irishblue,
    How large is the image that you originally uploaded? if is is smaller than the sizes in Media Settings -> Image sizes then WordPress will not create smaller versions. Try uploading an image larger than your largest setting to see if the options appear.

    That’s a good tip irishblue — I am trying to avoid having WordPress make thumbnails at all. Since I like resizing using phpThumb. But no CMS I know of “deletes the original huge image.”

    In spite of that limitation, I also highly recommend phpThumb. I’m having a bit of difficulty with it at the moment (because I did something funny to the folder permissions), but it comes highly recommended. Using it, you can also stick with WordPress to drive your gallery rather than go to Gallery 2 or Coppermine.

    If you integrate phpThumb into your templates, there is an important advantage to using phpThumb over WordPress’ created thumbnails: if the design ever changes, you don’t have to go back and re-upload images and create new thumbnails. Just change the sizing parameters in phpThumb (the ‘h’ and the ‘w’ in the string). There’s also other cool options like being able to auto-manipulate the images created.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Automatic resize every time you upload an image in MEDIA’ is closed to new replies.