Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Closed Thread
Old 02-07-2008, 08:33 AM W3Image Resizer
itHighway's Avatar
Skilled Talker

Posts: 83
Name: Zeeshan Dar
Location: GUJ
Trades: 0
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 -
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
itHighway is offline
View Public Profile
 
 
Register now for full access!
Old 02-07-2008, 07:30 PM Re: W3Image Resizer
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Don't know anything about the component but I don't see anything in your code that would resize an image.

it looks like it loads an image, gets the width & height into variables and the re-saves the same image.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
View Public Profile Visit chrishirst's homepage!
 
Old 02-08-2008, 07:33 PM Re: W3Image Resizer
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
This is (one of) the problem(s) with ASP. It doesn't do anything, so you need to go with all kinds of unsupported, barely tested components that no one knows about, and no one can help you with.

Instead, use the built in functionality in ASP.NET, which was invented in this century. That's kind of a big thing in the programming industry. Here's one way

Image.GetThumbnailImageAbort myCallback =
new Image.GetThumbnailImageAbort(ThumbnailCallback);
Bitmap myBitmap = new Bitmap("Climber.jpg");
Image myThumbnail = myBitmap.GetThumbnailImage(
40, 40, myCallback, IntPtr.Zero);


http://msdn2.microsoft.com/en-us/lib...nailimage.aspx
e.Graphics.DrawImage(myThumbnail, 150, 75);
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Learning Newbie is offline
View Public Profile
 
Old 02-14-2008, 08:03 AM Re: W3Image Resizer
itHighway's Avatar
Skilled Talker

Posts: 83
Name: Zeeshan Dar
Location: GUJ
Trades: 0
John, thanks for the script and advice.
__________________
Zeeshan Dar
itHighway -
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
itHighway is offline
View Public Profile
 
Closed Thread     « Reply to W3Image Resizer
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.29720 seconds with 12 queries