radykal | Support Center Chooser

For which product do you need support?

Fancy Product Designer Multistep Product Configurator

Start a new topic
Answered

disable minimum dpi?

I seem to keep getting a dialog box popup saying minimum allowed DPI. It was originally set to 72 for minimum and was getting this Error so I lowered it to 24 and I still get the error. How can I disable this dpi check? I've checked with a few photos and It seems to keep recurring. I've checked DPI of these photos and they are 72 so I don't understand when it's set to 24 its still getting an error? I've tried on both mozilla & IE. Any ideas anybody?




Best Answer
yeah all setup matey. I've set mine to 24 dpi and today had a customer message me saying they can't upload their photo. So they emailed me it. The DPI was 24 so why is this not allowing upload? I mite set the minimum to 1 to prevent this error as its causing nightmares for me haha.

 


What the error you get? Word by word. How i understand dpi option work only for export by admin

 

Think the problem has resolved itself by changing it to 24. Strange how even though the photos I tested were 72dpi & minimum dpi was set to 72 it wouldn't allow me to upload them because of a DPI error. However when lowering it fixed it. Not at first however I think that was down to a caching problem.

#Alexus / problem was user interface side, when customer clicks add photo and selecting image.

 

What error he get? Word by word, can you copy paste? DPI option affect only export for admin.

 

 

 Attached error Below of what I was getting. I lowered the minimum DPI which fixed the problem for 72 dpi photos. However it wouldn't of been getting this error when set to 72 as like I said photos were 72 DPI checked in properties & checked in photoshop. However not to worry, Problem resolved. (admin mark this as solved)

The DPI of the uploaded image is too small! Minimum allowed DPI is 72

 

Its cool, because when i set in options dpi minimum to 300 it allow to load files with 72dpi. Hmm......Looks like it just not work for me

 

Doesn't work for me either :P haha.

 

I set the Minimum Allowed DPI 72, but got an error.Picture resolution is 72

png
Yeah Hua Huang, I was getting the same error, hopefully developer will see this and fix the error. In the meantime do what I did and set it lower then the actual dpi you want it to be. so set it to 71, I personally set it to 24 in the meantime so my customers don't get the error.

 

Guys you tested it under admin account? Cant understand why i can upload any images and get no errors even if 300dpi is set in options

 

Answer
yeah all setup matey. I've set mine to 24 dpi and today had a customer message me saying they can't upload their photo. So they emailed me it. The DPI was 24 so why is this not allowing upload? I mite set the minimum to 1 to prevent this error as its causing nightmares for me haha.

 

What I've found until now:

- You have to activate PHP Uploader

- If you upload a PNG it detects it without any error message, the same image converted do JPG gives de error message imediatly


So. The DPI detection needs a better implementation! I've taken a peek to the code and the get_image_dpi function does a basic FileRead, reads 20 bytes and extracts the DPI from that 20 bytes. This approach is dangerous because the  Exif XResolution and YResolution can be in different positions in the file header depending on the camera model that creates the file, so, the only solution I've found to circumvent this problem is to set the Minimum DPI field to 0 (and not 1 because the returned bytes can be 0 !).


Yeah same I've noticed this, also set mine to the minimum of 1

Better using 0. The read function may pick up a zero from the file header ;)

I noticed if the DPI is set -1 of the actual DPI it work. For example setting the DPI to 23 of an image with 24dpi works but if you set it to 24 the same of the tested source you get an error message. I resolved this by setting it to 1 to prevent this from happening to customers
Login or Signup to post a comment