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 RepliesI am trying to resize images without componts in ASP, but I couldent find anything that can do that.
View RepliesMy 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?
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.
View Replies View RelatedI need to resize images to a fixed width.
How can I hold the aspect ratio?
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?
View Replies View RelatedHas 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.
Can someone help me out in resizing the Gif images.
I actually eant to resize the gif image and save in a separate folders.
I need code that simply resize image with same ratio. My server has ASPImage 1.5 component.
View Replies View RelatedHow 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..?
View Replies View RelatedI need a pure ASP (no com, or dll objects) solution that not only allows me to upload an image, but also resize it.....
View Replies View RelatedI 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?
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'
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
View Replies View RelatedI 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?
View Replies View RelatedMy 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....
View Replies View RelatedWhat 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.
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.
View Replies View RelatedHas 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?
View Replies View RelatedI have a web page which'll allow a user upload some pictures. Problem is, different users have different sizes of pictures. I was wondering if there was a way to resize the picture just before it is saved on the server? If not, then is there a way of resizing it just when i'm about to display it?
I googled around a bit but all i got were sites which had components that would help me do just that. I don't want to use components cos my host won't allow me use any external components, just want to use pure ASP (or maybe js).
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?
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...
View Replies View RelatedI 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.
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?
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: ....
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>
..................................................
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...
I can convert an image that is retrieved from a FileUpload object into a byte array and insert it into the database..
When the user signs-up i wish tosimply insert into the Picture (DB Type = Image) field to an image i already have saved in my images folder?
Anyone know of a way to do this? Tutorials, articles or advise??!
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>
I'm working on a project where I'm suppose to upload a image to a server. The uploading works fine but when I want to change the image I uploaded to another image I can't get the filepath of the old image to show in my "filefiled"....is it possible to set a "value" where I can retrieve a filepath in a form if the input type is "file"?
View Replies View RelatedI 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.
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?
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?
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?
View Replies View Related