By James Hertsch on
I'm having a devil of a time with the image module. I've got it installed, latest version (beta 3, I believe), and I'm trying to create image nodes. It ain't happening.
When I try to create the nodetype "image," the node is created, but the image isn't uploaded. I receive this message: "/home/example/public_html could not be copied." This message shows up regardless of whether I turn on or off the various ancillary image modules or whether I turn on or off the core download module. The strange thing is that attaching an image to normal nodes works just fine.
Any ideas how to fix this?
Comments
Some more experimentation
I tried a few more things, and it turns out that image.module (and, by implication, image_attach) is choking on large file sizes. So far, it seems that anything large than about 1.5 megs gets choked on. I tried upping the "max file size" in image settings to a ridiculous setting, but I'm still getting a choke.
I guess what I need to find is some way to auto-compress the files. Any thoughts?
Some webhosts will kill a
Some webhosts will kill a process that consumes too many resources. I had this problem quite a lot.
Do you need the images to be that big when stored on the server, or can you scale them down prior to uploading?
Scaling
I could probably scale them down, though I was hoping there was a way to get Drupal or the image module to handle that.
Right. If you had image
Right. If you had image module set to scale down a large image, that could definitely be the problem. That'll take up a lot of server resources. Ask your webhost about it.
maybe php.ini
You might also check the memory_limit setting in your php.ini file. It might need to be as high as 32mb.