Problem with storing image's dimensions in database after resize with SIP 2.5
Question:
Can I store image's dimensions in a database after resize with SIP 2.5? Now I get only original image dimensions iserted.
Answer:
Yes, you can store resized image dimensions in a database. Insert two hidden text fields in your upload form (if you haven't inserted yet) and bind them to width and height values in "Binding" tab of Application window.
Now find the following code in your page's header :
if pau.Done then SetUploadFormRequest "width",pau.Fields("fieldname").Width pau_saveWidth = "width" SetUploadFormRequest "height",pau.Fields("fieldname").Height pau_saveHeight = "height" end if
and cut/paste it right after :
Set sip1 = Nothing
and you are done.
Nota Bene:
"width", "height" and "fieldname" strings may deffer depending on hidden fields names.
Comments
Be the first to write a comment
You must me logged in to write a comment.