I've created a form using D7 Webform 7.x-3.20. This form works in the following manner:

  1. Fill out form and attach image.
  2. Email is sent to admin to approve where you click through to admin approval pages.
  3. Approve information and upload image (no issue).
  4. Page generation page where you select the image to thumbnail.
  5. Save and publish page which is added automatically to a gallery.

One issue; on step 4 the thumbnail will occasionally break and not generate in the specified folder I've defined after so large a size. I've tested to confirm it's not a file type since all JPG, GIF and PNG work just fine. It is only after about 10MB of size the issue presents itself. I've also checked my form to confirm it allows for larger file uploads than that. Additionally my php.ini file is currently allowing for up to 150 MB file size during this time of testing.

Hopefully we can brainstorm this issue together and come up with a solution.

Thanks in advance!

  • A 10MB image might need a lot of CPU and RAM to resize. What are your settings for memory_limit or maybe max_execution_time? Maybe try to increase them for testing.
    – Chris
    Commented Jul 1, 2015 at 1:47
  • Welcome to Drupal Answers! Please ask an explicit question. So far, you simply stated facts.
    – apaderno
    Commented Jul 1, 2015 at 6:12
  • Hi Kiamlaluno, sorry if I didn't come across clearly as to what I was trying to troubleshoot. My express interest is in solving why the thumbnail made in number 4 of the list above doesn't always generate.
    – Huginn
    Commented Jul 1, 2015 at 13:36
  • @Chris php_value max_execution_time 60 php_value memory_limit 128M
    – Huginn
    Commented Jul 1, 2015 at 13:42
  • @Chris I've tested this to the point where I've pushed those settings far beyond the time and limit listed in the comment above. Additionally, I've also been able to have the thumbnail not generate at a much lower file size – 4mb. Any additional thoughts? Additionally the file they are located in has a permissions level of 775
    – Huginn
    Commented Jul 1, 2015 at 15:35

1 Answer 1


Issue resolved. This was a combination of issues with file compression, max width dimensions and ram allocated to it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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