[ic] image size

Mike Heins mike at perusion.com
Mon Nov 10 00:03:19 UTC 2008


Quoting Rick Bragg (lists at gmnet.net):
> On Sun, 2008-11-09 at 13:07 -0500, Carl Bailey wrote:
> > On Nov 9, 2008, at 10:48 AM, John Hoy wrote:
> > 
> > > Tho only proper way to do this is to have your images cropped and
> > > sized to want you want them to be in Photoshop or other photo program
> > > before you upload them into Interchange.  You could have a program
> > > like ImageMajick scale them for you to a set size, but if you want the
> > > same aspect ratio for all photos to be consistent it would be
> > > impossible for a program to intelligently crop photos that are
> > > uploaded at an undesirable aspect ratio.
> > >
> > > JD
> > 
> > 
> > 
> > John is quite right.  Having properly photo-shopped images of a  
> > standard size is the gold standard.
> > 
> > However, if you don't have that option, the [image] tag might be your  
> > friend.  You need to have ImageMagick installed on your server to make  
> > use of all the features, but if you do, then something like [image  
> > src="/path/to/the/image.jpg" makesize="120x80"] would rescale your  
> > image to fit within the constraints of 120 pixels wide by 80 pixels  
> > tall, while preserving the aspect ratio of the original.
> > 
> > You can read more about the [image] tag here: http://www.interchange.rtfm.info/icdocs/tags/image.html
> > 
> > Regards,
> > Carl
> > . . . . . . . . . . . . . . . . . .
> > Carl Bailey
> > End Point Corp.
> > t: 919-323-8025
> > . . . . . . . . . . . . . . . . . .
> > 
> 
> Along this same thread, is there a simple way to "replace" the original
> image with the tag?

No. But it wouldn't be difficult to write a mod that did it.

-- 
Mike Heins
Perusion -- Expert Interchange Consulting    http://www.perusion.com/
phone +1.765.328.4479  tollfree 800-949-1889 <mike at perusion.com>

Nature, to be commanded, must be obeyed. -- Francis Bacon



More information about the interchange-users mailing list