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.....
View RepliesI need a pure ASP (no com, or dll objects) solution that not only allows me to upload an image, but also resize it.....
View RepliesI 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 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).
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 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 am trying to resize images without componts in ASP, but I couldent find anything that can do that.
View Replies View RelatedI'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 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 RelatedI need to write an image upload script asap, with saves the filename of the image in a database and the image itself in a folder.
View Replies View Relatedi am facing problem to image upload and show on web page. can anybody tell me about that and give me script for that.
View Replies View RelatedI have displayed some image from client pc in a browser with one check box in each image. If the check box is checked the image has to be uploaded to server while submiting the page. I have the path of the image with me from client pc. I am not using file control.i.e <Input type="file" .....>. How to upload that image from browser to server without using <Input type="file" .....>.
View Replies View Relatedive searched through google but still i haven't seen any tutorials on how to upload a picture in the server. Do you know any ?
View Replies View RelatedWhat is the code required to upload images to a web server from a users local machine? I need to amend an in-house CMT to add this facility, currently written in ASP. Code:
View Replies View RelatedI've been trying for a while now to write a page that uploads an image to a file.
Does anyone have a really simple example that I can start with. I have searched the net but only found complicated examples.
I have searched around the web and have yet to discover a "HOW TO" for this, tho there are lots for PHP.
So I am asking if any one in here got a clue on how to do it? I am using a simple form and want the image stored in the MySQL with the 3 fields (ID, Path and Blob).
Any one got any ideas?
How to upload file/image and store the file path to my access?
View Replies View Relatedis it possible to have an asp script create a thumbnail of an image upon upload?
i want to create a rather small thumbnail and 65 x 83 and put it in a folder '/sized'
oh yeah, and one more quick thing.. i am pulling information from a database.. why is it that the symbol ' gets changed to a ? when pulling it from the field.. will this go away when i start adding information through forms instead of access?
I want 2 upload a image and some text to the sql server database. and in anothere page i will retrieve all the fields . so can anybody help me.i am giving u the html source....
View Replies View RelatedDoes anyone have an existing image upload script that I can limit the size, width, and height?
View Replies View RelatedI have put together a form where i can browse for an image and then upload this to my web site.
Then i would like to take the location of the new uploaded image and add it to my database.
This is where i am having trouble! i cannot seem to put the location(s) of the images into an array.....
I use upload.asp (an open source file) to upload image file to a hosting folder, and save the file name to a field of database (I use mysql). But sometime (not all time) when I upload a new image file, I lost all the old value (old image file name) that saved in the field of database, the file name field in all old record are all changed to NULL, but the new file name is correctly saved into the right place.
Does any body know why it happened? Is it because the upload action or insert action? And "insert into" sentence can change old record value?
Anyone ever tried to upload several images in ChiliASP? Right now I can upload images one by one using ChiliUpload component. How can I upload several images at one time ? Once, I tried to use VBScript, but there was error messages. I think because ChiliASP limitation.
View Replies View RelatedI have to copy an Image from one Server to an other. It has to be done as follow:
Get the URL of the Image (http://dddd.ddd.gif) then copy to an folder on a NT4.0 Server.
Thats pretty easy if adodb.stream would be working.
I need an free codebased alternative or maybe an configuration tip for the IIS on a NT4.0 server.....
Yes different users can post images with the same name and they should be renamed as you state.
However you can not upload an image with the same name if you have already done so and give msgbox that duplicate image name pls check image name and image size is not larger then 13kb.
Currently I have a simple form where users input and update their data. This works fine.
However, we now have a need for users to be able to upload a picture to their profile. I have managed to successfully do this, however, once the picture is uploaded I need it to be automatically resized and renamed in the format "username.jpg". Then I need the path of the picture to be stored in the database with their record so that when it is opened the picture can be shown also....
how I can upload multiple image files from an ASP page to an MS ACCESS database. I understand that the best method is to upload the image to a folder on the server and then insert the file name into the database. I have had a go with smartASPUpload, but no joy. Someone has also told me I need to download an upload file-is this true?
I am using the dreamweaver database, bindings, and server behaviours, so any code that you can send to me will link to the database via a custom connection string. I need the form to contain 2 upload fields and obviously I need both images to be saved when the form is submitted. My form contains some general text fields as well, which will also need to be inserted into the database.