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?
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
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.....
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
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> ..................................................
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?
Picture Resize And Upload Using ASP
I 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).
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.
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?
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: ....
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...
Image From Image Folder Into Byte Array?
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??!
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>
<%=request.querystring("image")%> Image Won't Display
This worked fine for enlarging my images until i put it onto a secure server, anyone know how i can fix it ??? just comes up with the standard box with a red cross in it .. and the url when i click image properties says: http://url/images/<%=request.querystring( which is only part of the code)
Merge An Image Into Another Image
I'm looking for a simple way to merge an image into another image.What i have is a screenshot uploader, and i want to make it so that when they upload the SS, the script will automatically merge a small copyright type image onto the bottom right of the picture.
Web Browser
I have a simple ms access database front ended with simple asp pages using ms front page. I used the wizards to put it all together and I can send data easily enough using forms. I can recall the data using the data base wizards but I can't seem to design it to update the data once it's been submited. I've played around using sql update statements and modifying pages... but I gave up in the end. how I can design an update page using ms front page??? It doesn't have to be fancy or complex... I'll work on making it pretty later.
How To : Web Browser
I have a website with a default webpage having an image. I am also having four(4) images. I'd like when the user closes the browser and reopen it, it must load a new image. e.g. The User open the browser for the first time - Loads Image1. The User open the browser for the second time - Loads Image2. The User open the browser for the third time - Loads Image3. The User open the browser for the fourth time - Loads Image4. The User open the browser for the first time - Loads Image1. How do I go about doing that?
ASP Browser
I know I can do this using JS but can I do it using Vbscript? I want to check if a browser is NS4 or lower and if so to display a certain stylesheet. If another other browser then display an alternative (more feature rich) stylesheet
Browser
is there any way to know browser cookies are disabled and is there any way enable the cookies from asp code.
IE Browser
Is there a way to tell IE not to display URL links when a user hovers over a link?
Browser Statusbar
How can I get text to remain on the Browser's statusbar? For example, if I'm saving data to a DB Table after a user clicks a Button in the ASP page, I want the statusbar to show something like "Save Successful" or "Save Failed" so they know something happened. Right now, I'm trying to use the windows.status property, but it just flashes real quickly in the statusbar and then "Done" is displayed.
Browser Detection & CSS
I have just uploaded my website and it looks fine in IE, but awful in Mozilla. I need to load a different CSS file according to what browser a user has. Does anyone have any code that will detect browsers and versions?
Asp Site As Web Browser
anyone knows a VBScript that acts as a webbrowser? I am behind a firewall and my local machine is not visible to the internet, but I have a access to some webspace with asp VBScript. With the right script I could tunnel pages and sites from my local machine
ASP Function Browser
Does anyone know how can I get Visual Studio to show a classview-like function browser for my asp files? (For VBScript functions.) It would be enough if it showed the functions in the asp file I'm working on, even better if it showed all the functions in all the .asp and .inc files in a project.
Toolbar - Less Browser
I'm designing a small web application which is a table displaying live data which updates every minute or so. This app is very small and will stay open on a client PC's pretty much all day. So I was wondering if it is possible to display it in a browser , without the IE toolbars, just like a fixed dialog. Am I making any sense ;-) ?Any ideas?
Browser Plug-in
We are trying to record browser information when a customer comes to our site. I have been able to get most basic browser information using both asp and asp.net. The only thing I’m missing is the ability to detect plug-ins. Does anyone know how I can access the plug-in collection in IE? I have not found any clear way of doing it on the internet I’m starting to think I am headed down the wrong path. Maybe IE doesn‘t call it a plug-in collection?
Browser (and Other) Caching
I have a dynamic website system that my clients use to change their webpage conten online. Sometimes the new change isn't visible right away to a browser. I have the following in every webpage's <HEAD> section: <META HTTP-EQUIV="EXPIRES" CONTENT="0"> which on previous investigation was supposed to be a solution for this. All I want is a definitive solution so that when a browser makes a call to my server for one of my pages, everything along the line that has a cached copy of the page is going to say "Aha! The browser wants the latest version of this page! I'm going to pass this request up the line to see if their is a more recent version instead of sending it my cached copy". (Yup, that is how browsers and ISPs speak to each other). What do I have to do to my webpages to ensure this happens? At the same time, I don't want it to be getting the page all the way from the server if the page content hasn't changed. In other words, I just want the cacheing to work properly! Sorry if this isn't an explicit ASP question but no one in the HTML groups I've tried has any idea what I'm talking about and I'm hoping that those who frequent this room will have a better handle on the whole client/server/caching problem and the solution!
Virtual Browser
I have heard there is something called a 'virtual browser' which allows me to check asp and html output on the complete range of browsers without having to download each browser and version (side by side).I did a google search and see a variety of links but nothing conclusive. Is there a standard product experienced asp developers are using.can you point me towards it?What are the limitations and challenges in using this product?
Cross Browser
My code works in IE but not in Netscape. Can someone let me know what should be done in order to view the javascript function also in Netscape. Thanks. Script: Quote: <script language="javascript"> function showurl(v){ var layers = document.all.tags("DIV"); layers['show'].style.visibility=v; } </script> Form: Quote: <input type="radio" name="check1" value="1" onclick="showurl('visible')"> View all Links <div id="show" style="visibility: hidden;"> <a href='http://www.myurl.com' target="_blank">www.myurl.com</a><br /> <a href='http://www.someurl.com' target="_blank">www.someurl.com</a> </div>
ASP And Mac Safari Browser
Anyone ever experience problems with Apples Safari Browser and ASP scripts? I have a user who keeps sending us feedback stating that Safari does not work on our site, but his Internet Explorer works just fine. He kept getting this error: Microsoft VBScript runtime error '800a000d' Type mismatch: 'CLng' Now the code works perfect in all other browsers. I'm curious why Safari isn't working with ASP. Since all of the code is processed on the server, it seems odd that the browser would have specific issues with code. I'm not looking for help with code, just any input on whether any one has experienced problems viewing ASP scripts using Safari browser.
Browser Redirection
I have created a repository for training and reference files. The management would like to see reports regarding who is using what files. To do that I am sending the user to a page (OpenDocument.asp) with the URL in the querystring (?URL=blabla.asp). A database is then opened so the rep is logged and then they are redirected to the URL in the querystring. The problem- When the browser redirects through a querystring it substitutes / with %5C. Once that happens the relative links we have created for the images do not appear because they are looking for the last /.
Accessing ASP.Net Web App With Non-IE Browser
I am part of a group that has developed an ASP.Net web application. I'm presently trying to test some code I wrote that checks for IE browser at session start (and issue warning if not IE), but I can't seem to "get out the starting blocks" with any non-IE browser: I've tried Netscape 4.8, Netscape 7.0, and Opera 7.5. I've gotten a few different errors, but most often I get the following when attemting to access the startup page: HTTP 401.2 - Unauthorized: Logon failed due to server configuration Internet Information Services Anybody know how to get another browser to work? Only my old Netscape 4.8 pops up a login dialogue, but I can't get that to log in correctly.
Browser Manipulation
How do you redirect a script that create a browser without a url address and the size of the browser is intact? I've seen this before(forgot the site!) but dont know exactly how this is done.
Control The Browser
I’m building a intranet site and want to: 1)associate an desktop icon to a browser instance, i e, that icon opens the browser for, and only for the intranet site. 2) Once in there, unable the navigation activities, i e, unable the capability to get out of that intranet with that browser instance. 3)When called from the usual way guarantee the browser normal functionality.
Browser Check Using ASP
I currently use a javascript routine to check what browser the user is using, but I'm trying to replace my client side code for server side as much as I can. Does anybody have a good (and tight) routine to check what the browser is,eg IE, Netscape, FireFox, Safari, etc?
Browser Compatibility
Does anyone know of a newsgroup or reference where I can determine why certain elements render differently between say, Internet Explorer and Mozilla? Our site has some of the worst HTML I've ever seen and some of it renders terribly. I think I'm finally through repairing all of the "IE Only" CSS tags. Another problem I'm having is that when I use JavaScript to hide/show a row in a table, it works fine in IE but colspan formatting seems to be lost on Mozilla/Firefox in this scenario. Anyway, I'm really just looking for a decent newsgroup for HTML related problems.
|