Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Dundas Upload module image resize?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Dundas Upload module image resize?

 Post Reply Post Reply
Author
dld-nordic View Drop Down
Groupie
Groupie


Joined: 24 October 2008
Status: Offline
Points: 99
Post Options Post Options   Thanks (0) Thanks(0)   Quote dld-nordic Quote  Post ReplyReply Direct Link To This Post Topic: Dundas Upload module image resize?
    Posted: 05 June 2011 at 11:50am
TonyM wrote this
 
Quote

'************************************************

'*** Begin TonyM's image resize mod - Beta Ver 0.9 ****

'************************************************

If strUploadType = "image" Then

'Dimension variables

Dim Jpeg

' Create instance of AspJpeg

Set Jpeg = Server.CreateObject("Persits.Jpeg")

'maintain aspect ratio

Jpeg.PreserveAspectRatio = True

' Open source image

Jpeg.Open .Files(1).path

'shrink if it's great than 800px wide so it fits nicely on pages

If Jpeg.OriginalWidth > 800 Then

Jpeg.Width = 800

End If

' Save resized image to disk

Jpeg.Save .Files(1).path

End If

'**********************************************

'*** End TonyM's image resize mod ****

'**********************************************

 

Could this be done to Dundas upload?? I was using Persits on the 32bit server, but it its pretty steep priced compared to Dundas....

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 06 June 2011 at 9:03am
Most upload components including Dundas only support uploading of files and not resizing.

Even with Persits they have their AspUpload component for uploading and then have Persits AspJPEG for resizing the files.

You should be able to run your 32bit Persist components on your 64 bit server. You install the 32 bot versions of Presits as normal and then pace the application pool in 32 bit mode, which you would need to do anyway for compatibility, improved performance, and improved memory management.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.