Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Is there a way to limit the size (dimensions) of the image a user can upload to their profile? It looks like Wordpress does do some kind of limiting as uploading a 1024x768 image the result gets scaled down to 360x270, but where is that configured, either in the UI (which I haven't found) or through code?

This is the section of the user profile I'm referring to: alt text

share|improve this question

4 Answers 4

Being the author of the plugin in question, there actually is a limit. (It's 360x360.) Else +1 to Davy8's answer.

I could add a define in a future version...

share|improve this answer
    
Add a filter for customizations per functions.php. Please. :) –  toscho Dec 4 '10 at 2:06
up vote 1 down vote accepted

It looks like the author image section of the User Profile editor was from the "Author Image" plugin. I didn't suspect that at first because I didn't know that plugins were allowed to modify that screen, so I thought it was just a build-in Wordpress function and that the plugin just allowed for easy display.

As it doesn't look like the plugin has a settings page I ended up just modifying the plugin itself. For those curious, the file to modify is sem-author-image-admin.php and the variable is about 3/4 of the way down, just search for the comment // Set a maximum height and width and you'll find it. (There's no guarantee that this will remain the same in future versions and upgrading the plugin will most likely break this, just an FYI)

share|improve this answer

A few people have indicated that this plugin will allow you to resize thumbnails and specify size. Please let me know how that works for you!

share|improve this answer

WordPress automatically resizes uploads into different formats based on the settings on the Settings » Media page:

Media settings page

You can set up all of your different default sizes here. Though keep in mind that plug-ins and themes can define their own custom image sizes ... so I can't guarantee perfect operability in all cases.

share|improve this answer
    
It was a bad assumption on my part that the Author Image section of a user's profile admin page was build-in to Wordpress and not created by the plugin, which explains why I had difficulty finding an answer on Google. I had actually tried the media settings, but they didn't do anything because it wasn't being manipulated by Wordpress. –  Davy8 Dec 3 '10 at 20:48
    
+1 anyway though. –  Davy8 Dec 3 '10 at 20:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.