Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   Preventing all resizing when uploading pictures (http://forum.bytesforall.com/showthread.php?t=13009)

ruudyn Feb 26, 2011 05:11 AM

Preventing all resizing when uploading pictures
 
Hello, I tried searching the forums for an answer to my problem without luck.

I would like to prevent all thumbnail creation when uploading pictures through Wordpress media library. So for example when I upload a 1000x1000px picture, I end up having just the original picture in my uploads folder. Before I started using Atahualpa, I could achieve this by setting Settings->Media->Thumbnail, Medium and Large sizes all to 0 at Wordpress settings.

After installing Atahualpa, whenever I uploaded a large picture I ended up having the original, a 150x150 px and 400x1000 px resized pictures in my uploads folder. I got rid of the 150x150 thumbnail by setting Post thumbnails-> width & height to 0 at Atahualpa settings. The only thing I need now is to get rid of the 400px wide resized images. I can't seem to figure out which setting controls this.

I have tried disabling all my plugins with no difference. If I switch to a different theme there is no resizing. I'm using Wordpress 3.1 and Atahualpa 3.6.4.

ruudyn Feb 26, 2011 08:15 AM

After a lot of searching I found a workaround for this, on line 681 at functions.php changed
Code:

add_image_size( 'single-post-thumbnail', 400, 9999 ); // Permalink thumbnail size
to
Code:

add_image_size( 'single-post-thumbnail', 99999, 99999 ); // Permalink thumbnail size
This prevents the creation of 400px wide resized images, but it would be nice to have an easier option to block this. (Or maybe there is but I haven't found it.)

shalin_99 Jan 31, 2013 12:06 PM

Very useful.
I had been searching for this.
I've an entertainment blog and I upload 100s of images everyday, so, it was simply wasting my file space.

Thanks a lot.


All times are GMT -6. The time now is 08:37 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.