Image Size & Image Folder

Posted in: Newspaper
Post count: 135

Two image-related questions:

1. Is there a way to limit the image size so that authors don’t upload HUGE image files? These tend to take a long time to load.

2. We want to have all of our banner ad images in a separate folder from the other media. Is there a way to use the WordPress interface to add banner ads/images into it’s own folder and not just with all the other images?

Thanks.

Post count: 9544

I put images for ads into my root directory via FTP, and then call the ad banners from my plugin or widgets as mysite.vvv/pix/mybanner-460×60.png

avoid using the words “ad” from now on due to adblockers …

so /pix/ would be good directory to add manually via FTP — downside you have to upload your image via FTP.

I do that for most stuff anyway, so no big deal for me.

WordPress does not support multiple upload directories itself.

There used to be a image limit size setting in the wp admin panel; but now I think you have to set that in either wp-config.php … hmmm…. nope.

I think it’s now set on the server in your hosting panel in the php settings:
upload_max_filesize = 2M

in theory, if your server is running apache and is running scripts as fastcgi, then you can try this:

create a php.ini file and upload it into your /wp-admin folder. Then add the following:
memory_limit = 120M
upload_max_filesize = 1M
post_max_size = 32M
file_uploads = On

Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.