Creating Image Thumbnail

Some surely must know of a way of creating a smaller filesize thumbnail using just bog standard ASP code and no components?

View Replies


ADVERTISEMENT

Image Thumbnail

I am writing an ASP site that contains images. The owner of the site wants
to be able to upload images. The only problem is that the owner is not
computer literate enough to be able to create a thumbnail. So basically I
am looking for some code that would help me take the image he has and create
a thumbnail out of the image.

View Replies View Related

Thumbnail Creator

I need a simple function to generate and save a thumbnail from a picture. It would require:

Source Picture Fileame
Thumbnail Height and Width
Thumbnail Filename

There are many pay programs available but they do far more than I require and I want the code to be built in to my code, not operate as a separate program. Any ideas? The browser knows how to resize pictures easily enough, and that is free! Is there no way to capture this with ASP?

View Replies View Related

Controling Thumbnail Proportions

I've built a job site, that allows employers/agencies to load their logos up which appear on each advert. Currently the max size limits of images are 600*200. Anything under these dimensions are uploadable.

The problem is that I have a control page that displays and manages all their logos. If their images are of different widths, it makes the page look tacky. So, is there a way of making all their thumbnails that appear on this page, all the same widths, but still in proportion height wise?

ie:
600*200 will display 200*66. (1/3 size)
400*180 will display 200*90. (1/2 size)

In otherwords, the width to be 200px, and proportional height wise.

Any ideas on how to do this?

View Replies View Related

Thumbnail Size Control

i am displaying images from a database using code like this Code:

strSQL = "SELECT DISTINCT * FROM tblInfo WHERE RecordID = " & strID & ""

oRs.Open strSQL, conn

Response.Write "<tr><td><a href='images/" & oRs ("PictureName") & "'><img src='images/" & oRs ("PictureName") & "' border=0></a></td>...

if seen examples of resizing images as they are uploaded, but is there a way to get size attributes just having a path? What I like to be able to do is only resize the picture to a thumbnail with a width of 75pixels, only if the image is over 75 pixels wide. Is this possible?

View Replies View Related

Uploading / Resizing / Thumbnail Images

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.....

View Replies View Related

Create Thumbnail Of MS Word Document

Just wondered if it was possible to create a thumbnail / GIF image of a microsoft word document on the fly with ASP?

They seem to be able to do it on Microsoft.com (see http://office.microsoft.com/template...3601033&CTT=98, for example) - Is there a function which does this?

View Replies View Related

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: ....

View Replies View Related

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>

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

View Replies View Related

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...

View Replies View Related

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??!

View Replies View Related

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>

View Replies View Related

Upload New Image Get Path Of Old Image

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 Related

<%=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)

View Replies View Related

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.

View Replies View Related

Creating A New Asp.net

Environment:
Development PC: W2K Professional
WebServer: W2K Server, IIS 5.0
Peer-to-Peer network

I'd like to create a new asp.net project on a remote server (not on the
local (development) machine. I have looked for info on how to do this, but
all I can find are instructions on how to create on localhost, then deploy
later to remote machine.

View Replies View Related

Creating An ASP

what's involved in creating an ASP? I need to create a web page where users can check their past history of the account.

View Replies View Related

Creating XML In ASP

So i currently have an asp page that creates an xml document with information from a database. However I need to link to my schema when creating the Root element here,

Set objRoot = objDom.createElement("projects")

this is the link that would go into projects:

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="semesters.xsd"

View Replies View Related

Creating A String

Im trying to create a string from checkboxes that have been checked, but for some reason its not working

strNumbers = ""
for each key in request.form("chkFacility")
strNumbers = strNumbers + "" & key & ","
intCount = intcount + 1
next

So I want to end up with a string like this '3,12,7.' Instead Im just getting a single number. Am I doing this the right way. Any help wud be just fantastic!!

View Replies View Related

Re Creating A .csv File

I know how to use ASP to create and write into a .CSV file on the server, but I have a small problem. Every time I write to the file I am adding new lines each time. I don't know how to wipe the previous contents out, and I thought this is probably a no-brainer for you guys ...

So, I'm looking either to delete the file at the start of the process and start from scratch or

* open the file
* wipe all contents from file
* write to the newly cleaned file

View Replies View Related

Creating A ZIP File

How can i create a ZIP file from a folder (full of files) of the server.?

View Replies View Related

Creating A New Cookie

I have an asp page where i created cookies-for admin and for user. The aspx page reads these cookies. Everything seems to work fine but now i have to create a new cookie if cookie has expired or if cookie is null. Also, i am having problems with the expire because if the username belongs to the admin for example and then i want to change
the username that belongs to a normal user the cookie recognises the first (admin) cookie. How do i solve this? .....

View Replies View Related

Creating Fields

I want to create an order form for prints online... I will have up to 200 prints to be selected. What I am thinking is that I will have an HTML Form that has all the 200 thumbnails with a check box next to them. They select the ones they want and push next. Then I would like it to create a set of options for each one they selected.

That basically says the image name then has a check box for 5x7, 8x10 and a text box for the amount for each... I do I create the page what creates these selections and how to I incorporate that into a mail form going to the next page?... it seems like a simple enough idea. Am wondering how the reality of it will be.

View Replies View Related

Creating An Odd Array

I am trying to pass a form value and pull some values from an array. I am getting no errors but no values on this code. Any ideas? Code:

View Replies View Related

Creating A Menu Using ASP

I am using asp and access database. I need to create a menu according each member access. In other words, if member login I need to display the menu according to the services the member selected during registration. Each service contains diff type of products.

Service1
-produc1
-product2
Service2
-produc1
-product2
-product3
..more
Service3
-produc1
-product2
..more

What is the best way to this...

View Replies View Related

Creating Rss Newsfeed

i have website which provide daily news. we store the news into sql database. i want to create a rssnewsfeed which i can provide to other websitemasters. can anyone tell me the asp code or other where i can create rssnewsfeed from my sql data.

View Replies View Related

Creating A Task

I have a problem. I have a database with 1000 e-mails that i use in my
mailinglist. And when i send them mails it takes kinda long since i attach a
..pdf file each time. so i was wondering if there is a way in asp to create a
task on the webserver using asp to trigger a script that sends the mails.
sure i could use server.scripttimeout but the thing is that i dont want to
wait 30 seconds for the page to finish loading. and if there will be 3000 in
near future i'll have to wait for a very loooooong time.

anyone know how to create a task using asp dynamically?

View Replies View Related

Creating Thumbnails

I'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)

View Replies View Related

Creating PDF Reports

I'm pretty new to the whole concept of Server Side programming and am currently developing some important elements for a site I have made with Classic ASP programming. One of the things my employer wants me to develop is a Server Side script that will allow a report in PDF format to be generated online to customers who make use of the tools.

View Replies View Related

Creating Hyperlinks?

I need to format each row being returned in a recordset as
a hyperlink. One of the fields being returned is the
subject of a message that my hyperlink will show. When
the hyperlink is clicked then the ASP page loads further
message details of that link. Does anyone know how to do
this?

View Replies View Related

Creating A Graph With ASP

I have the following graph (see atttached file) and was wondering if it would be possible to create this graph by using ASP and how easy it would be. If it is possible could someone give me a few links to sites where I could get some code to start me off.

View Replies View Related

Creating Folder Using ASP

Is it possible to create a folder using a virtual path? This is for a site on a shared hosting server.

View Replies View Related

A Few Questions About Creating Using Asp

First, how can I get asp to create a table in en existing DB that is an atuonumber. Meaning.. If say table 56 exists alrady, I want it to create 58 as the name. Along with this, I need to copy the fields from table temp, into the above DB. Can this be done?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved