Print Page | Close Window

Dundas Upload module image resize?

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=29402
Printed Date: 01 April 2026 at 9:01am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Dundas Upload module image resize?
Posted By: dld-nordic
Subject: Dundas Upload module image resize?
Date 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....




Replies:
Posted By: WebWiz-Bruce
Date 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.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net