Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Dynamically change image size

Quote Reply
Dynamically change image size
Is there a way to dynamically change the size of an image that is not uploaded by Linksql, for example, if I upload the following in the "Description" field,

Code:
<p>This is my new image:

<img src="/images/image.gif width=450 height=500><br>
More text, blah, blah, blah</p>

I didn't actually upload the image, there is just a link to it in the coded html. Problem is with my .css templates, if the image exceeds 400 pixels, it is throwing off my page rather severly.
Can this be fixed either via .css or something else?? Normally I would just use photoshop and change the images, but I have over 1400 images to change, and would like the ability to have them changed automatically upon uploading the coded html....

</not a clue>
Quote Reply
Re: [Dinky] Dynamically change image size In reply to
Disregard, found the answer:
Code:
#container img {
width: 75%;
height: 75%
}

</not a clue>
Quote Reply
Re: [Dinky] Dynamically change image size In reply to
Hi,

Isn't there a way you can create a script in Photoshop (depending on which version of photoshop you have) to resize all images in the same folder ? Even though you can reduce the size using CSS you'll be using extra bandwidth and the pages will take longer to load.

John
Significant Media
Quote Reply
Re: [Dinky] Dynamically change image size In reply to
Photoshop has a batch conversion mode, as does the original batch convert, Graphics Workshop. Give them a look.


PUGDOG´┐Ż Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.