<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3086" name=GENERATOR></HEAD>
<BODY
style="WORD-WRAP: break-word; khtml-nbsp-mode: space; khtml-line-break: after-white-space">
<DIV dir=ltr align=left><SPAN class=468014019-14062007><FONT face=vt100
color=#0000ff size=2>Thanks Justin!</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=468014019-14062007><FONT face=vt100
color=#0000ff size=2>Worked out great!</FONT></SPAN></DIV>
<DIV><FONT face=vt100 color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=468014019-14062007><FONT face=vt100 color=#0000ff
size=2>Sal.</FONT></SPAN></DIV><BR>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Justin Hayes
[mailto:justin.hayes@orbisuk.com] <BR><B>Sent:</B> Thursday, June 14, 2007
12:37 PM<BR><B>To:</B> Baytalskiy, Sal<BR><B>Cc:</B>
rt-users@lists.bestpractical.com<BR><B>Subject:</B> Re: [rt-users]
ImageAutoResize in RT 3.6.3<BR></FONT><BR></DIV>
<DIV></DIV>This is what I did on 3.6.3:
<DIV><BR class=khtml-block-placeholder></DIV>
<DIV>copy share/html/Ticket/Elements/ShowTransactionAttachments to
local/html/Ticket/Elements/</DIV>
<DIV><BR class=khtml-block-placeholder></DIV>
<DIV>then at around link 156 there is the code that display an image:</DIV>
<DIV><BR class=khtml-block-placeholder></DIV>
<DIV> # if it's an image, show it as an image</DIV>
<DIV> elsif ( $RT::ShowTransactionImages and
$message->ContentType =~ /^image\//i ) {</DIV>
<DIV> $m->out('<img src="'</DIV>
<DIV> . $AttachPath .
'/'</DIV>
<DIV> . $Transaction->Id .
'/'</DIV>
<DIV> . $message->Id</DIV>
<DIV> . '/" />' );</DIV>
<DIV> }</DIV>
<DIV><BR class=khtml-block-placeholder></DIV>
<DIV>well I just added a 'width=90%' declaration and it seems to work fine for
me</DIV>
<DIV><BR class=khtml-block-placeholder></DIV>
<DIV> # if it's an image, show it as an image</DIV>
<DIV> elsif ( $RT::ShowTransactionImages and
$message->ContentType =~ /^image\//i ) {</DIV>
<DIV> $m->out('<img width=90% src="'</DIV>
<DIV> . $AttachPath .
'/'</DIV>
<DIV> . $Transaction->Id .
'/'</DIV>
<DIV> . $message->Id</DIV>
<DIV> . '/" />' );</DIV>
<DIV> }</DIV>
<DIV><BR class=khtml-block-placeholder></DIV>
<DIV>HTH</DIV>
<DIV><BR class=khtml-block-placeholder></DIV>
<DIV>Justin</DIV>
<DIV><BR class=khtml-block-placeholder>
<DIV>
<DIV><SPAN class=Apple-style-span
style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; border-spacing: 0px 0px; khtml-text-decorations-in-effect: none; apple-text-size-adjust: auto; orphans: 2; widows: 2"><SPAN
class=Apple-style-span
style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; border-spacing: 0px 0px; khtml-text-decorations-in-effect: none; apple-text-size-adjust: auto; orphans: 2; widows: 2"><SPAN
class=Apple-style-span
style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; border-spacing: 0px 0px; khtml-text-decorations-in-effect: none; apple-text-size-adjust: auto; orphans: 2; widows: 2">
<DIV>------------------------------------------------------</DIV>
<DIV>Justin Hayes</DIV>
<DIV>Support Manager</DIV>
<DIV><A
href="mailto:justin.hayes@orbisuk.com">justin.hayes@orbisuk.com</A></DIV>
<DIV><BR class=khtml-block-placeholder></DIV><BR
class=Apple-interchange-newline></SPAN></SPAN></SPAN></DIV><BR>
<DIV>
<DIV>On 7 May 2007, at 08:34, Baytalskiy, Sal wrote:</DIV><BR
class=Apple-interchange-newline>
<BLOCKQUOTE type="cite">
<P class=MsoNormal><SPAN class=328333207-07052007><FONT face=vt100
size=2>Hello!</FONT></SPAN></P>
<P class=MsoNormal><SPAN class=328333207-07052007><FONT face=vt100 size=2>I
found an article on automatic image resizing for RT 3.2 on the
Wiki.</FONT></SPAN></P>
<P class=MsoNormal><SPAN class=328333207-07052007><FONT face=vt100
size=2>However it talks about some files that seem to be very different in
RT 3.6.3 that i'm running.</FONT></SPAN></P>
<P class=MsoNormal><SPAN class=328333207-07052007><FONT face=vt100 size=2>Is
there a way to automatically scale attached images to the ticket's display
width?</FONT></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: vt100">Thanks
!</SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: vt100">Sal
Baytalskiy</SPAN></P><FONT color=blue size=3><PRE>*** NDS UK IT scanned this email for malicious content ***
*** IMPORTANT: Do not open attachments from unrecognized senders ***
</PRE></FONT>
<DIV
style="MARGIN: 0px">_______________________________________________</DIV>
<DIV style="MARGIN: 0px"><A
href="http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users">http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users</A></DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<DIV style="MARGIN: 0px">Community help: <A
href="http://wiki.bestpractical.com">http://wiki.bestpractical.com</A></DIV>
<DIV style="MARGIN: 0px">Commercial support: <A
href="mailto:sales@bestpractical.com">sales@bestpractical.com</A></DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<DIV style="MARGIN: 0px">Discover RT's hidden secrets with RT Essentials
from O'Reilly Media.<SPAN class=Apple-converted-space> </SPAN></DIV>
<DIV style="MARGIN: 0px">Buy a copy at <A
href="http://rtbook.bestpractical.com">http://rtbook.bestpractical.com</A></DIV></BLOCKQUOTE></DIV><BR></DIV></DIV></BLOCKQUOTE></BODY></HTML>