Resizing Images And Displaying As Thumbnails
i pulled this out from an archive but without any comments or instructions on how to use it. any ideas. Code:
View Repliesi pulled this out from an archive but without any comments or instructions on how to use it. any ideas. Code:
View RepliesI currently use ASPImage and resize JPG files with no problem. How, though, do I resize GIF images? Is there a different component?
View Replies View RelatedI have a web page which pulls images from a access database.
The images are displayed on the page from a recordset (objRS("Thumbnails") - Thumbnails being the field in my database that holds each image.
However, because I want the images display in thumbnail format, it means I have to open Photoshop and resize each image to thumbnail size (100 x 100) before adding them to the database.
Is there a way in ASP that I could code so that each image brought in from the record set, no matter what size, will display at 100 x 100px so I don't have to manually resize them to thumbnail size myself?
I've been looking for ages for decent serverside (or clientside I suppose,) software for uploading images. I need the software to make thumbnails of the images too.
I'm making a property website product and I need to make it easy for the user to upload pics by browsing to them and selecting them. When he/she adds the info and photos the thumbnails will be made automatically ....
I've been tasked with the challenge of re-sizing images linked via BBcode on the fly. I have compiled a list of functions that do individual components of this task, but stringing them together has proved, well, a challenge.
I discovered this code that will re-size the images, however this will need to be added on an ad-hoc basis, and the fact that the image name appears twice complicates the usual system I used to add the code.
Usual way of replacing the code (inside a function):
Code:
vText = Replace(vText,"[ img ]","<div align='center'><img align='middle' src='")
vText = Replace(vText,"[/ img ]","'></div>")
Image resize code:
I am working on a gallery and am uploading pics. Is there any way of resizing the resizing image eg make a thunbnail from the image been upload. Also can I rename the image so that images aren't overwritten.
below is the code I am using.....
is it possible to resize images uploaded in the dundas component or any other upload 3rd party component.
Also i woudl like to be able to rename them and put in specific folders?
Can this be done? I have designed a site that displays images in a specific dimension, but the majority of site visitors either disregard this requirment or don't know how to resize images. Is there a way to upload in image and then physically resize it to whatever I want?
View Replies View Relatedresponse.write FilePath gives this path, ImageName.jpeg but the image(s)
doesn't display in the below code. What am I missing..? Cheers.
<%Response.Write FilePath%>
Original Image:<BR>
<IMG SRC="<%=Server.MapPath("ImageUploads") & FilePath%>"><P>
Thumbnail (50% reduction):<BR>
<IMG SRC="<%=Server.MapPath("ImageUploadsThumbsThumb") & FilePath%>">
The files definitely exist in the database.
I have created a table that I need to display images on.so its 3 images across and how ever rows down. but I need to do this dynamically.what I have at the moment is a standard recordset, it will display the 3 recordsets left to right, once reaches 3, then drops a line and carries on.
But this isn't working properly.as its calling the images directly instead of from the database.Can someone let me know how I can display images 3 x ~until the recordset goes EOF/BOF
Have two folders on my web server, data and public. Public is the www root and is read only, data has my database and is read/write.
I've got an asp upload script sending image files to data/images which works fine. I've also got a file listbox which picks out the file names on an asp script to add the names of the files to a database table.
However...I'm having real problem pulling the images out on the gallery page, I reference them with a virtual path '../data/images/imagename.jpg' etc, but they will not show.
Anybody know a way round this? Sorry if you need more info just say.
I am building a website where users can place advertisements with images. I have decided to place the images in an Access database to ensure the right images are matched the correct advertisements. My problem is that I can retrieve all of the data from the table which holds the photos (eg, filename, file size, content type) except for the actual photo itself. When I try to download the photo or press the hyperlink to display the photo all I get is the square with the red cross. I do not get any error messages.
Does anyone know why this is happening. My code is below:
I am trying to display images on a results page which have been saved in a Access database as BLOBS. I also trying to resize the images at the same time so that each record on the results page has the same dimensions. I have 2 include files on the webpage to resize the images, a processing ASP page to download the images and the syntax to make it all work.
My problem is that I am new at ASP programming and having the problem of putting all of the pieces together. I keep on getting an error message on 1 particular line and have no idea on how to fix it after many hours of trying different ideas. Code:
Everything works but the image that is called from the database does not dispay? no error messages are displayed, have double and tripple check paths and image name to no success, thought it could be the code:
View Replies View RelatedI have a database that I am storing image URLs in. On the website, when you go to a project my work has done, if there is more than one image, it displays a next (and previous link) link where necessary. However, if I have 10 or more images, it does not display at all.
I think I've realized this is not the best way to do this, but this is how the database is set up: name, description, image01, image02, ... , image11. Each one is its own column.
Thanks to photoshop_god I have a code that does the next and previous links. But it is not displaying any images but the first one if there are 10 or more. Here is my code:
i am producing a e-commerce website using ASP. My database is MS access using a database called products.But heres my problem, the database holds the images using a OLE object. But when i come to view the data on the website, i can get the data showing such as price, product id and other information but when i try and view the images from the database on the webpage it comes up all garbled like wildcards.
View Replies View RelatedI know not to store images inside a Db table using the ole method, but I don't know how to call an image to accompany text in a for loop script.I can provide the unfinished script (missing is the coding of the fields: Pic1, Pic2, Pic3, Pic4) for inspection.
View Replies View Relatedi would like to store images in a database so that when a link is clicked on a html page a new page opens with the image taken from the database. I have heard that you should only store the image path name in the database. how i would do this and then display the image on a HTML page.
View Replies View RelatedHow do i retrieve images[.gif/.jpg] from database and displaying it on a webpage?
View Replies View RelatedI have an Access database set up with a number of text fields and a hyperlink field which references a different image per record. I am trying write ASP code to retrieve allt his data and images onto a web page. I have the data but the images are causing a problem.
The code I am using is as follows:
For the data: ....
With the website i'm developing, the user can upload images and the filename is saved to a mysql db, the problem is displaying these images. If i use the servers local path i.e. "C:InetpubwwwrootIMGimage.jpg" then the page just displays the little box with a square, circle and triangle in it, that usually displays while an image is loading. If i use "http://localhost/IMG/image.jpg" then when i load the page i get the "connect to the server:type name & password" box popping up...
I've set the permissions so that an Internet guest has read & write permissions to the IMG folder so I don't understand why it's not just displaying the images.
I have a page that allows someone to upload an image, and then the image is displayed on another page. Unfortunately, When the permissions are set to allow the photo to be uploaded, it won't allow it to display on the other page. When I change the permissions so that you can't upload an image, it will display on the other page. The page in question is http://www.atlantatoysfortots.com/Pictures.asp I'm at a complete loss. Is there anyone out there that knows enough to make this stupid thing work? I have checked every page and they are good....site is hosted on GoDaddy.
View Replies View RelatedI have images stored in a access db and i'm trying to access them like this.
But problem is only one gets displayed. I also cannot get any html on the page since it displays all dots and dashes. Any idea how to solve this.
<%
StrConnect = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("../04_db/aspupload.mdb")
Set rs = Server.CreateObject("adodb.recordset")
SQL = "select image_blob from myimages"
rs.Open SQL, strConnect, 1, 3
while not rs.eof
response.binarywrite rs("image_blob")
rs.movenext
wend
rs.Close
%>
I have a database of images with captions that I need to display at random on an ASP page. Once I have pulled out my recordset, what's the best way to select on item at random from the recordset to display? Also, at first I might have only 5 items in my recordset, how can I avoid the same item repeating 3 times in a row if the person clicks refresh?
View Replies View RelatedIf I m using a simple code like this;
Set RS = Server.CreateObject("Adodb.Recordset")
strsql= "SELECT Images from product where status = 1 ORDER BY [Supplier]"
RS.Open strSql,Conn,3,3
If RS.RecordCount <> 0 then
While not RS.EOF
Images= RS("Images")
RS.MoveNext
WEND
RS.Close
While using this code "Images" is an array..(a collection of imagesname from the table "Product" whose status is 1). Now I have to use first 4 images at a time among these collection of Images in the different specific locations in a page in the same time.
Like Inshort (For example)....
I am trying to display images from an access database and going around in circles.
<%
If len(rsdvd("picture"))>0 then
Response.ContentType = "image/jpeg"
Response.BinaryWrite rsdvd("Picture")
Response.End
ELSE
Response.Write ("<img src=""images/sorry.gif"" alt=""Sorry, No picture."">")
END IF
%>
It returns this fault:
Response object, ASP 0106 (0x80020005)
An unhandled data type was encountered.
/description.asp, line 115
I have a site that allows image uploads, what I'm looking for is a little piece of code that when the user uploads an image, the code makes a copy of the uploaded image and resizes it to a set size with a new filename of "origionalfilename + _tn.jpg" etc .how I can do this WITHOUT installing any components onto the web server.
View Replies View RelatedI'm doing a gallery and I need to make some thumbnails of the images, but yeah...I don't know how, especially since I can't access the server to install stuff. And to be honest I wouldn't know how to install them in the first place (linux server)
Now...the best solution I've come up with so far is to send a string to another webserver that runs on a decent platform and use asp.not to make the thumbnail and then link it from there...would be a pain in the butt though, so if anyone has some good advice then I'm all ears (even if the advice is to give up, tbh)
I'm trying to delete 2 files using fso. The mail file name is stored in an
access db.
using the code below I can delete the main file but not the thumbnail.
The thumbnail has the same file name plus the suffix "_small" so if the main
file is called "mypicture.jpg" the thumbnail is called "mypicture_small.jpg"
The main file is being deleted but no matter how I try I cannot get the
thumbnail deleted. They are both in the same folder with the same permissions.
Code:
Is it possible to create thumbnails on-the-fly in ASP? I'm aware of ASPImage, but that appears to create actual files. I want to know if I can make 300 x 300 pixel artwork, and have ASP generate any size I prefer.
Maybe I want 50 pixel on this page and 92 pixel on another. I realize I can set the height and width, but I want to actually decrease the download size also. I don't want to recreate a new file for every size. Is this possible?
How can my ASP serverscript read a JPG file and create a small thumbnail
image? I don't mean simple resizing, but true resizing so that the image
actually gets smaller in size. Is this possible without the use of a 3rd
party component?Does anyone have a code example for me?
I want a page where I will have an image gallery. The page when loaded goes and grabs all the picutres in the directory and puts them into an array, creating thumbnails for them as well (found this part in my search).
After the thumbnails are loaded, I want the pictures to be loaded in the same window, in a section underneath the thumbnails. Also Can I scroll the thumbnails left or right on mouseover? not in a full circle but left until the first one is encountered and right until the last picuture is showed?
I need a fileuploader that automatic make thumbnails in different sizes when
an image is uploaded to the server (ASP/Win2003). Does anyone have
experience with this, something to recomend?