Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    ASP




Is Posible To Resize An Image Without Any Component


I am trying to resize images without componts in ASP, but I couldent find anything that can do that.




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Resize Uploaded Images Without Server Component
My host offers the 'Persists ASP-Upload' component, but not the 'ASP-Jpeg' component. I can therefore allow users to upload images which can then be saved on the server.

What I need to do however, is resize their images before they are saved, so that their pixel dimensions are correct. Is there a way to do this without having the ASP-Jpeg (or similar) component installed on the server?

Image Resize
What is the best image resizing tool is out there? I want to resize images in ASP page when users upload them into some directory.

Image Resize
I have a page that displays a image from a folder. If the image is over a certain size I want to resize it to a given size, but if the image is smaller than the given size I set I want it to stay the same. Any ideas?

Image Resize
Has anyone managed to get ASP to do an image resize ? I know its possible easily in .NET, or by purchasing a COM object, but my server cant have either of those.
Looking to automatically create a thumbnail when a user uploads an image.

Resize Image
Can someone help me out in resizing the Gif images.

I actually eant to resize the gif image and save in a separate folders.

Image Resize
I need code that simply resize image with same ratio. My server has ASPImage 1.5 component.

Image Resize
How can i resize a picture with asp, i mean i store the picture into the database, and when i display it, i just resize it from html, but it does not look good, not focused... basically how can you make a thumbnail..?

Resize An Image On Upload
I need a pure ASP (no com, or dll objects) solution that not only allows me to upload an image, but also resize it.....

Image Resize In Browser
I have an ASP page where I am displaying an image submitted by a user. I don't know the width or height of the image - they are variable. However, when I display the image, I want to shrink it to a particular size if it is wider than one of my page elements (say, 130 pixels).

I need to detect the width of the image and then display it with a WIDTH attribute if it is wider than 130 pixels. Anyone know a way to do this with ASP, without using a 3rd party component? If not, know how to do it with Javascript?

Resize The Image And Save
I have problem with resizing a picture and don't know what the problem with the following code:

dim fs
dim sourcefile
sourcefile = uploadsDirVar & filename
set fs=Server.CreateObject("Scripting.FileSystemObject")

'to access the data of the image
dim iwidth, iHeight
dim myImg

if fs.fileExists(sourcefile) then
set myImg = loadpicture(sourcefile)
iwidth = round(myImg.width / 26.4583)
iHeight = round(myImg.height / 26.4583)

if (iwidth > 250) then
iHeight = (iHeight * 250)/iwidth
iwidth = 250
end if

If (myImg.Width > iwidth) or (myImg.Height > iHeight) Then
If (myImg.Width / iwidth) > (myImg.Height / iHeight) Then
myImg.Resize iwidth, 0
Else
myImg.Resize 0, iHeight
End If
End If

myImg.WriteFile sourcefile
set myImg = nothing
end if

set fs=nothing


when i run it, the following error occur :

Object doesn't support this property or method: 'myImg.Resize'

Image Upload With Resize
I need help to do a upload image with image resizing (for the thumbnail view). our hosting provider supports file SoftArtisans upload component. How can I do the my task

Image Resizing Component
I need to install a component which will upload and resize images (jpegs). I don't need too many bells and whistles but would like one which is reasonably good at keeping the file size low (or lets me set the compression options).There's quite a few out there, has anyone any recommendations?

How To Resize All Images Sizes And Coordinates Of The Images On Resize Browser
My page have background image,on that image have more images and text. My problem is whenever resize browser that images are not resized and also not moved correct place .(i.e look not like before alignment).I want to do everything in dyanamic....

Is There Any POP3 And NNTP Component I Can Use As A ASP Component?
What I want to do is to show always the latest post on our company NNTP
and the newest email in my inbox as an activex background on my desktop.

Resize A Frame
i have A page that show List of many field from database and i have frames : Top , Left and Main Page. I think it's tired to see the fiel with horizontal scrolliong too long. I wonder that the left frame can be resize to Left(Close to left) then i can open it again. But I have no idea to doing that.

Auto Resize Web Page
Has anyone developed a web page that automatically senses the screen resolution of the incoming browser and dynamically resizes content accordingly? For instance, an 800x600 resolution user might see 3 columns of product thumbnail images, whereas a 1024x768 user would see 4 columns. Of course, the thumbs are data-driven. Is this possible and/or advisable?

Resize Photo Store On Server?
I have a Windows 2000 server. My ASP application allows users to upload a photo for display to other users. Unfortunately everyones photos are different sizes. I'd like to resize the photo to 150px wide while maintaining the aspect ratio of the photo.

Is there anything built into IIS/ASP that will allow me to do this? If not, is there a free DLL, etc. that I can add to the server?

PDF Creation :: Format The Text Or Resize It
Is anyone having problems with formatting text using the ASPPDF component? I am having problems when it fills in the pdf form from data entered through a form. For some reason it doesn't allow me to format the text or resize it...

Resize Popup Window To Fit Text
I have a popup window that is used to display text from a database. Some times it can be a few words, sometimes it can be a hundred words. What I would like to do is resize the popup window to fit the text. Well actually it is just the height that needs to be resized. I have set the width to 600. I have put the text in a table and I was thinking
I could set the height of the window to be the height of the table plus some for room. I don't know if that is possible.

At first I tried to count the number of lines and multiple by a factor by that doesn't work so nicely because I was getting the number of lines by dividing the number of charaters by the maximum number of characters in a line.

Auto Resize Dropdown List Of A Combo
Any code snippet or help link available on how to auto resize the dropdown list part of the combo(<select>) ?

Or, is there any alternative techniques for displaying the full lenth text when dropdown the combo?

Display An Image From Access, Stored As Location Name Not Actual Image.
I have a client who has had a ASP site with an Access database for several years. It stores information for the used cars on his lot. I have stored text in the database that points to the location of the image for each record. Each record will have a thumb image that is supposed to display in a list of vehicles available then the user can select an item from this list and a new page displays with the information and the regular size image. So far everything has worked fine exept for the display of the images which are stored in a separate directory called veh-photos. All I get are image place holders. I am using Dreamweaver 2004 and and Access 2000 for the database.

Following is the code to list vehicles: ....

Open Image In 'Kodak Image Edit Control' With Web Browser
1.I want to show a image file of type '.tif' in the browser window; for that I'm writting as ASP code page.

2.This '.tif' type image can be shown better with 'Kodak Image Control'.

3.To have this 'Kodak Image Control' on my code page I just add it's ..ocx to tool box and then drag it from 'Toolbox' to the page.

4.Now after dropping this control to the code it's type is getting changed to 'object' instead of type 'ImgEdit'(and I think this is the
reason I don't get correct result).

5.On one button's 'Onclick' event I'm calling a javascript function with which I'm setting a 'Path'and'Display' property of a control.

6.And want to show a image at location -- '..MFTDRCMF919685173-62.tif' which get shown in new browser window but could not get shown in that particular control. That means the path is correct, then what is the problem?

For better understanding of problem I'm pasting a following code which I've tried up till now......
..................................................
<%@ Language=VBScript %>
<% OPTION EXPLICIT %>

<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">

<SCRIPT LANGUAGE=javascript>
<!--
function showpic()
{
var path;
path = document.frmtif.path.value;
alert(path);
document.frmtif.ImgEdit1.Image =path;
document.frmtif.ImgEdit1.Display;
window.parent.self.open(path);
}

//-->
</script>

</HEAD>
<BODY bgColor=#ffe4e1>
<form name="frmtif">
The Image
<P>
<OBJECT id=ImgEdit1 style="WIDTH: 409px; HEIGHT: 218px" type="ImgEdit"
align=left
border=1 classid=clsid:6D940280-9F11-11CE-83FD-02608C3EC08A
name=imgtif></OBJECT>

<input type="hidden" name="path"
value="..MFTDRCMF919685173-62.tif">
<input type="button" name="show" value="Show" onclick="showpic();">
</P>

</form>
</BODY>
</HTML>

..................................................

Displaying Alternate Image When Image Source Not Found
I am creating a dynamic ASP VBScript page, which gets data from an Access database.

In the database, there is a field which holds a URL to an image. I can get the image to display fine, but where there is no file that matches the URL (i.e. a missing image) I want to display an alternative, default image (e.g. one that says "Awaiting Image"). The field is never blank, but the image file may not exist for all records in the database.

I think what I am trying to get to is the following:

If file exists (using URL from database to get location of image file) thendisplay image using the url from the database as the image source
else
display default image - hardcoded in program
endif

I have had a go and come up with the attached but I get an error with my if statement.

<%
Dim objFSO
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
If objFSO.FileExists (server.mappath("<%=(Recordset1.Fields.Item("ImageLocation").Value)%>")) Then
<img src="<%=(Recordset1.Fields.Item("ImageLocation").Value)%>">
Else
<img src="images/awaitingimage.jpg" width="243" height="239">
End If
%>

I get "The page cannot be displayed" with the following error:

Error Type:
Microsoft VBScript compilation (0x800A03EE)
Expected ')'
/living_space_root/TMP5zdpv2l4js.asp, line 58, column 66
If objFSO.FileExists (server.mappath("<%=(Recordset1.Fields.Item("ImageLocation").Value)
-----------------------------------------------------------------^

Displaying Alternate Image When Image Source Not Found
I am creating a dynamic ASP VBScript page, which gets data from an Access database.

In the database, there is a field which holds a URL to an image. I can get the image to display fine, but where there is no file that matches the URL (i.e. a missing image) I want to display an alternative, default image (e.g. one that says "Awaiting Image"). The field is never blank, but the image file may not exist for all records in the database.

I think what I am trying to get to is the following:

If file exists (using URL from database to get location of image file) then
display image using the url from the database as the image source
else
display default image - hardcoded in program
endif

I have had a go and come up with the attached but I get an error with my if statement...

Show Image From SQL Image Field?
Here is my code. I'm using 2 pages.

(Page 1) blob.asp

<%
set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_blob_STRING
Recordset1.Source = "SELECT AboutPic FROM Elizabeth.GF_AboutUs"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 3
Recordset1.Open()
Recordset1_numRows = 0
%>
<%
Response.contentType = "image/jpg" 'Recordset1.Fields("AboutPic") <---Tried
both methods
size = Recordset1.Fields("AboutPic").ActualSize
blob = Recordset1.Fields("AboutPic").GetChunk(size)
Response.binarywrite(blob)
%>

(Page 2 Show the Image)

<%
Dim urlString
urlString = "?" & Request.QueryString
%>

<% Another rs to show other information as text from the same table %>

<body>
<img src="blob.asp<%=urlString%>" width="194" height="256">
</body>

VB Component
I want to call ASP object from VB component. When my component is ActiveX
dll I can get the request object and read the form controls without any
issue. But when my component is ActiveX exe the same code doestnt work
Does Activex EXE support accessing of ASP object model.

Fax Component?
I was wondering if you guys know if there is a good component for sending
fax? the server has a fax-modem and i would like it to "call" an other fax
and send data. is that possible?

Using A COM Component From ASP
I don't know to much about asp in general, I'm an ASP.net developer, but my
boss wants me to find out the following:

Is it possible to use a COM component from ASP. We have a COM component that
allows us to interact with our bank for e-commerce style functionality. Our
current site uses ASP and we know need to integrate this COM component in
order to let us to some fancier stuff, such as on the fly fraud checking for
credit cards.

Can someone advise me if ASP can use COM components and what is involved?
Does anyone know of any good resources such as a tutorial?

ASP FTP Component
Anyone know a Good ASP FTP Component?I searched and found many but most do not have online demos to see how they work.Anyone know a good one?

COM Component With ASP
Can i use COM component with ASP? Which is normally fastest?

a)Logic written in VB COM
b)Logic written in ASP
c)Logic written in C++ COM

Which is normally faster to access some data in a database?

a)Query
b)Stored procedure
c)View

Free FTP Component
I want to be able to list FTP directories using any FTPs. Are there any free dlls out there?

Which One Is Better (component For Tearing)
Do you think which one is better ?WinHttpAspTearXMLHTTP
or another ?

ASPUpload 3.0 Component.
I'm Using ASPUpload Component 3.0 demo on my personal system.

Can I access individual items using a string variable like;

strFieldName = "FILE1"
objUpload.Files(strFieldName).FileName

it works fine if i give a string value to files collection;

objUpload.Files("FILE1").FileName

Best ASP Upload Component
We have been having problem with our file upload component. It seems that at times the file upload process hangs, and the users get a timeout error. Although the users upload 1 or 2 image files at a time.

I have altered the upload size limit property in the IIS 6 metabase properties, so I don't think that is the case. Because most of the time it works okay, but at other times it hangs....

OWC Component Cannot Be Create Using ASP
I have created an asp page that pulls data from SQL server and displays
on webpage in the form of Table and Chart.

I use OWC to generate Chart. It work find on my computer with Ms office
2000 installed, but when I upload my the page to my webserver, it
doesn't work with the following error message:

006~ASP 0177~Server.CreateObject Failed~Invalid ProgID. For additional
information specific to this message please visit the Microsoft Online
Support site located at: http://www.microsoft.com/contentredirect.asp.

Does anyone know how to solve this problem?

P.S. On the production server, Office Web Component had already been
installed. WSCript.CreateObject("OWC.Chart") works fine in my colleage's
vbscript file.

Asp Component Error
I am trying to get a component working that I built in VisualStudio.NET using VB.NET, but I'm still having some difficulty.

I created the .dll, then created the COM callable wrapper from the command prompt using:

Regasm mycomponent_name.dll /tlb:mycomponent_name.tlb

This produced the .tlb file

I placed the .dll file and .tlb file into the bin folder for the website directory.

Then I registerd the .dll file:

regsvr32 pathmycomponent_name.dll

It showed that the .dll file registered okay, but I'm still getting an invalid ProgID error indicating that the component doesn't exist.

Asp Component Error
I am having a problem with a com object on WinXP Pro. It is properly registered, but gives me the following error:

Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
/code/cgi-sec/upload.asp, line 3
Invalid class string

I do not have windows firewall active and it does the same thing with firewall/virus/spyware software disabled. It runs fine on my Win2K Pro desktop.

Upload Component
I am using a free upload component for uploading a file to a database . It is accepting only .txt files. I wanted to upload word documents. Also How can I upload a .doc file to Access database.
I don't want to buy upload component.

ActiveX DLL Component
I created a ActiveX DLL component to create a Excel file under my home directory through VB6.0. Then I registered it through "regsvr32" command and a messagebox came out to say that the register was successful. But when I tried to run it in my ASP page under IIS ver5.01 and win XP Pro, it gave me this error:

Error Type:
Server object, ASP 0177 (0x800401F3)
Invalid class string
/tg.asp, line 2

Here is my full code:
<%
set myExcel=server.createobject("test.test1")
myExcel.CreateExcel
set myExcel=nothing
%>

Debug Component
I built an MTA which is used from an ASA and ASP pages. The MTA was
developed in VC++ 6.0.How would I go about debugging into the C++ code?


Unzipping Component For .ASP
I am looking for an unzipping component. I have a series of files that are
available zipped at a considerable decrease in size. And before ASPINET
fails on a script timeout, I'd rather download the zip file and unzip it
when it arrives.

ASP HTTP Component
Is there any good and reliable Upload Component for ASP (or ASP.NET)? I
need one which provides an upload status bar.As well, it must be able to handle more than 4 gigabytes of data transfer.Internet connections can be unreliable at times. This component needs to be able to resume broken uploads.

File Component
Do you know where have free/buy a upload file component?
I need allow user to select the folder instead of select file one by one

Upload Component
where i can find free upload component so that i can make a site that can let people upload file thru http.

Mail Component
Mail component to retrieve mail from Hotmail, Yahoo, gmail..etc?
I am not sure these web based mail support POP3 or IMAP4. Is there any mail
component out there that can retrieve mail from these services?

Asp Calendar Component
I am writing an ASP site for a small residential center, and need to be able
to make bookings. Can anyone recommend an ASP component that will provide a
good calendar interface so that a user can see which dates are available and

IIS Loggin Component
I will need to implement a site wide logging component for
an Asset Tracking and Management System and I am wondering
if the MSWC.IISLog component with IIS is up to the job and
is customisable for custom use or should i invest time in
creating my own.Logging needs include exceptions, failures, use tracking,
logging-in information, session stats etc on approx 150
pages for approx 25 users.Running on IIS 5.0 on Windows 2000 Server

Chat Component
Please recommend an chat component ( customer support purpose)
for .net applications with oracle back end.
Loof forward for any information in this regard.

Office Web Component
Using OWC version 2000 I am trying to input a recordset
into an OWC Spreadsheet. I can pass the variables and
create the SQL fine in the ASP page, but I need to pass
the SQL to a vbscript function outside of the <% asp code %[color=blue]
>. Is there any way to call the function? ASP doens't seem[/color]
to recognize the function.


Copyright © 2005-08 www.BigResource.com, All rights reserved