Jump to content

W3Image Resizer

Whether you're a seasoned veteran or a struggling beginner, Web Radiance is the web development and web design forum for you. You'll find answers to all your HTML, CSS, SEO, and Programming needs. Pull up a chair and stay awhile.

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

W3Image Resizer Rate Topic: -----

#1 User is offline   ECommerce Guru 

  • W.R. Private
  • Group: Members
  • Posts: 11
  • Joined: 11-January 08
  • Gender:Male
  • Location:GUJ
  • Interests:web development, web design, reading & writing web related articles, horse riding, swimming.

Posted 07 February 2008 - 07:04 AM

We are using W3Image resizer to resize images. But for some unknow reason it is not resizing images. It just picks the image from Folder # 1 and without resizing copy it to Folder # 2.

I checked Dimac.net web site and manuals but there isn't enough info to resolve the issue.

Below is the code I have:

Quote

set objW3Image = Server.CreateObject("w3Image.Image")
objW3Image.CreateEmptySurface 250, 168
objW3Image.LoadImage "C:\images\file1.jpg"

intWidth = objW3Image.Width
intHeight = objW3Image.Height

objW3Image.SaveImage "C:\pictures\file1.jpg", "JPG", 24
set objW3Image = nothing

================================================
Zeeshan Dar
itHighway
web design development custom e-commerce solution & web based real estate listings software services provider
0

#2 User is offline   Telos 

  • Eternal Being
  • Group: Members
  • Posts: 250
  • Joined: 08-May 07
  • Gender:Male
  • Location:Finland

Posted 07 February 2008 - 07:34 AM

I believe your loadimage overrides the createamptysurface. The next two lines don't do nothing if you don't need the width and height later on. I found out that the image object has a method scale which could be used to resize images. I also read something that when you download the software you get some sample pages which might help you. Anyways..heres the reference with the documentation for scale: http://dimac.net/Products/w3Image/Ref/W3Im...eference2.0.pdf
I am a man without a website
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users