close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

DFP Image Resize Limitations?

Thread began 11/20/2009 7:02 am by digitaldesign | Last modified 11/20/2009 12:52 pm by Jason Byrnes | 1930 views | 3 replies |

digitaldesign

DFP Image Resize Limitations?

Hello!
We have run into a curious situation with the DFP upload.

We use this extension in tandem with DataAssist to upload images onto the server to be displayed in a photo gallery. Naturally, customers use whatever comes out of their digital camera which is typically well over "normal" web size -- in the 3,500 x 2,400 pixel/300dpi range. We find they do this because they're either ignorant that the file size is gargantuan, they're lazy and don't want to take the extra step to resize the image down to something web ready or do not have any software on their systems to resize images.

If we have DFP upload these large JPGs without enabling the resizing feature the JPGs upload in all their mongo pixelness and all is happy, albeit huge. We get the usual "I only see a part of the picture" phone call and we have to reiterate the necessity for smaller images to use on the website. When DFP 2 came out we were overjoyed with the new resizing feature and felt "woo hoo" problem solved.

Here is the curious issue we're running into. If our customers upload anything that has at least one side of the image dimension less than 1000 pixels (ie 2000 x 999) the file uploads and resizes without any problems at all. When they attempt to upload an image that has four digits in both height and width (ie 2000 x 1000) they get the spinning "Page Loading" browser of death.

We have verified this on two different web providers with the following settings in the PHP.ini:

Provider 1 (Local Vendor - we have access to edit PHP.INI):
max_execution_time 45
max_input_time 60
memory_limit 128M
post_max_size 20M
upload_max_filesize 20M

Provider 2 (National Vendor - no access to PHP.INI):
max_execution_time 30
max_input_time -1
memory_limit 16M
post_max_size 8M
upload_max_filesize 5M

The files we are using as tests are always less than 5MB, as are the images that are coming out of our customers digital cameras. We have used the Validation Toolkit code posted on this forum to not allow uploads larger than the max filesize.

Any assistance with this problem we are facing would be helpful. What other information do you need from me to help troubleshoot? I can provide you with a login to test this out on our development site.

Dreamweaver CS4; Mac OS 10.5.8
Testing using Safari, Firefox on the Mac; IE 7 & Firefox on the PC all with same results

Kindest Regards,
Monica

Sign in to reply to this post

Jason ByrnesWebAssist

With Image Resizing in DFP, the biggest factor will be the memory_limit php setting.

DFP Uses the GD Library requires quite a bit if memory when resizing the image, especially if your image upload form contains multiple file fields and/or you are creating multiple different sizes for the images that are uploaded.


Try increasing the memory_limit setting to 256M, this should work for most images. the 16m limit of your second host will be problematic when using the image re size functions

Sign in to reply to this post

digitaldesign

GD

Will I need to adjust anything on the GD extension settings:

[gd]
; Tell the jpeg decode to libjpeg warnings and try to create
; a gd image. The warning will then be displayed as notices
; disabled by default
;gd.jpeg_ignore_warning = 0

Sign in to reply to this post

Jason ByrnesWebAssist

No, you should not need to edit the GD settings.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...