[ic] image size

Darnell Hudson hudsondarnell43 at verizon.net
Mon Nov 10 16:24:32 UTC 2008


Rick Bragg wrote:
> On Sun, 2008-11-09 at 17:40 -0800, Darnell Hudson wrote:
>   
>> Rick Bragg wrote:
>>     
>>> On Sun, 2008-11-09 at 19:03 -0500, Mike Heins wrote:
>>>   
>>>       
>>>> 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
>>>>
>>>>     
>>>>         
>>> Thanks,  I realize how dangerous that could be with caching etc, so it
>>> is best the way it is written.  
>>>
>>> rick
>>>
>>> Well how would use the makesize if you want all the images to be the right size. 
>>>       
>
> You could simply loop through all the products something like this
> maybe:
>
> [query
>     sql=|
>         SELECT  sku, thumb
>         FROM    products
> |]
>    [image src="[sql-data products thumb]" 
>       makesize="80x120"
>     ]
> [/query]
>
>
> rick
>
>   
Well one thing I did notice on the demo that some images can be on the thumb
directory, which I am trying to figure how to get my category page to 
point to the thumb directory. any ideas will be great.
>
>
>
>
>
>   




More information about the interchange-users mailing list