Resizing Linked Images
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:
View Replies
ADVERTISEMENT
I 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 Related
I 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?
View Replies
View Related
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 ....
View Replies
View Related
I am unable to show and image or flash i have in an access database that is linked to an images subfolder, below is what i am using to show text on my ASP page but i want to ad a couple of images to the database to show in different locations on the page or pages, so i guess i needed a call function but ive used the one i have on my database image rotator scipt and a few others i have dowloaded and still the call scripts wont work, i'm sure im doing alot wrong can someone please edit this code and show me what to do... if its no bother
This works fine for showing the text on a page:
<%
Dim rs
Set rs = Server.CreateObject ("ADODB.Recordset")
rs.Open "introtext", "DSN=introTXT.mdb"
While Not rs.EOF
Response.Write "<br>" & rs("Content") & "<br>"
Response.Write "" & rs("URL") & ""
rs.MoveNext
Wend
rs.Close
Set rs = Nothing
%>
View Replies
View Related
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
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?
View Replies
View Related
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 Related
i pulled this out from an archive but without any comments or instructions on how to use it. any ideas. Code:
View Replies
View Related
I have an application in ASP that exports to Word using the Response.ContentType method.
The application references another ASP page through the img tag that uses a Response.BinaryWrite (of an img content type) for its output.
In other words:
App A.ASP contains the code: [...] <%Response.ContentType =
"application/vnd-msword"%> [...] <img src="B.ASP">
Then B.ASP contains the code: [...] <%Response.ContentType = "image/png"%>
[...] <%Response.BinaryWrite BinaryObject%> [...]
When Word opens and the document is saved, it references the images as links. I need to have these images be embedded as the file will need to be emailed outside of the network.
I can go in and manually break the links and save them as embedded files, but this process needs to be automated as users will not know how to do this.
Is there a way to force these images to be embedded instead of referenced as links when the Word doc is intially created?
View Replies
View Related
I have a database that has 2 tables linked into it from another database. I am having problems trying to pull in values from those 2 linked databases. One of the tables is tblClient. Code:
View Replies
View Related
Ithe goalposts have been moved (yet again!) and the database that was one, may have to become many, being used on subdomains of the same server sharing some information but not all from a 'global' database.The solution I initially found was to used linked tables and developing it on pws - this was perfect. I linked local databases to the external table data in the 'global' database hey presto the application ran smoothly. There was only 1 connection to each local database and I could retrieve all the information I needed from the global one. However on uploading I have no idea how to set this via asp or sql as online the path of the linked tables is what was on my local machine and I have found no way of being able to edit this or indeed know if this is possible.
View Replies
View Related
I am using one combo box and populating it with the values . i have another combo box on the page. I want to display the related values in this second combo box based on the selection in the first combo box.
I am trying to reload this page on the change event of the combo box but the values are not coming in the 2nd combo box . Please send me a solution to this or if possible a sample code for the same.
View Replies
View Related
im trying to link to a Access db which uses linked tables via a odbc connection... is there anything different about the connection string / driver?
adoConnection.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("Resources/peterjohntest.mdb")
but this error comes up Code:
View Replies
View Related
My client wants me to add a functionality which would enable him upload and resize the pictures. His server is having ASPUPLOAD and e-kov components intalled. Also he doesn't want to write files to the disk and save only to memory.
I can use ASPUPLOAD's functionality to save files in memory or save files in the database. My question is how can I access a file so that I can resize the image using e-kov software. And when using 'upload.save' only, without path, it saves the file virtualy but where does the file and how to access it.
View Replies
View Related
I have been using Imager Resizer....
View Replies
View Related
Recommend me a good free image resizing tool you've been...
View Replies
View Related
I have a load of images on a server, but I don't want to resize the original images. I want to display the images on a page but at a reduced size.
Just forcing the browser to display the images at a smaller size using the width/height attributes is not really acceptable as the picture looks like *** (a technical term if ever there was one :P).
Ideally I want to see if there is the functionality to properly resize, i.e. resample?, the image on the fly. Im not interested in storing the images just resizing and displaying.
View Replies
View Related
I'm designing a site in asp where the user can upload an image and the page will read from a database and show the image. The problem is that all images are odd sizes and the image is being stretched when displayed on the page. I want the page to intelligently resize the image so that it will fit within the confines of a frame. I've tried all sorts but nothing seems to work.
View Replies
View Related
I need a help to prevent resizing of <TDwhen i post inside this <TDhtml text of other web page.
View Replies
View Related
I realise that ASP can't dynamically create images on the fly using ASP code. I am considering getting a DLL file to do this for me. My question is this: do I just place the DLL on the server with my ASP file? As DLL files need registering, how does this work with using a web server? I have a folder called cgi-bin on my server.
I realise this is more a question for my webhost but I have never used a dll before and wondered if anyone could shed some light on what is involved?
View Replies
View Related
I have a "booking" section on my intranet.
2 questions.
1. Can I, say by session, determine if a user logged in can amend/delete data they have entered? But no one else.
Say they book a conference room, but only they can delete it
2. I want to prevent cross bookings (in terms) of time.
View Replies
View Related
I have an Access DB that has a linked table to a SQL Anywhere DB. When I try to access this Access DB, it prompts me the first time every time for username and password to the SQLA DB. This isn't a problem when it is just me that is working on development, however,
I figured MS would have something good to say about this issue, so that my users can use this DB as well. MS says I need to pre-open the table using the same credentials for both DB's. I have tried this several ways, and am still unable to open the linked access DB.
The error I get is that the DSN=xsellvehicles (this is the DSN that is used by Access to open the table that resides in SQLA) can't be used because the username or password doesn't work.
View Replies
View Related
if you have seen an example floating around on the internet of three linked list boxs using asp code and a database connection. I have managed to get it to work for the first 2 list boxs, but I am unable to get it to populate the third list box, this is how it is:-
Tables:-
Main_cat
Sub_cat
Subsub_cat.
Not all Sub_cats will have subsub_cats, hope this makes sense. I have attached the code.
View Replies
View Related
how can i change the options of a combo box when selecting an option of another combo box?
View Replies
View Related
I currently have a page with car manufacturers in a dynamic form menu. Users can select one and click submit to find available cars by that manufacturer. What i now need is a second menu on the page where when a manufacturer is selected, the models associated with that manufacturer display for a user to choose. For example if Ford is selected:
Menu One Menu Two
------------------ -----------------
Ford Focus
Fiesta
Ka....
Can i do this with ASP to say "if menu one is ford, menu two contains...."? Or is there a much easier way which i am somehow missing?
View Replies
View Related
making the image proportion to its size...
View Replies
View Related
I have a register module where user can register with their information and they have to upload their images.
1. I need to know how i rename that image and upload to server with that new name.
2. how to i change the image's height and width and then upload that image.
View Replies
View Related
I 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 Related
I have a sysmon activex control inside an ASP page. When I resize the window, the activex control does not resize itself to fit the window. Does anyone know how to make the activex control automatically resize to fit the window?
View Replies
View Related
how do I resize a two-dimensional array? The array I'm working with is "data(X)(Y)" where X is 0 or 1 and Y grows to a dynamic number.If "data(1)(highest element)" IsNull, then I need to strike it from the array. I believe this should be doable by simply resizing the second dimension down by one. Through researching I established the following set of code:
I = UBound(data(0)) - 1
ReDim Preserve data(2,I)
But it results in a "Subscript out of range" message on the latter line. Short of looping through and building a new array.
View Replies
View Related
I have a script on a site that i am redoing and have used an i frame that resizes depending on the size of the page that is loaded into it.
I would like to use an existing asp driven page from a realesate site to laod in to the iframe as the "listings" section; however the frame will not resize. any sugestions? Code:
View Replies
View Related
What is the difference between the HTML <table> and ASP <asp:table>? I've just shifted development environments from DreamWeaver to Visual Studio. I've put together a page by dropping elements directly onto the grid, but I get no automatic reformatting. My old technique from DW would be to put it all in a table for formatting, but I find that clumsy in VS.
First, they have both html and asp table controls, and I don't know the difference between them. Second, the two controls are rendered on the design page differently, and I really can't tell what they are going to do. Third, the asp:table is shown without any rows or columns. What's up with that?
View Replies
View Related