<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">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="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><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 size="3" color="BLUE"><PRE>*** NDS UK IT scanned this email for malicious content ***
*** IMPORTANT: Do not open attachments from unrecognized senders ***
</PRE></FONT><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 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="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Community help: <A href="http://wiki.bestpractical.com">http://wiki.bestpractical.com</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Commercial support: <A href="mailto:sales@bestpractical.com">sales@bestpractical.com</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Discover RT's hidden secrets with RT Essentials from O'Reilly Media.<SPAN class="Apple-converted-space"> </SPAN></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Buy a copy at <A href="http://rtbook.bestpractical.com">http://rtbook.bestpractical.com</A></DIV> </BLOCKQUOTE></DIV><BR></DIV></DIV></BODY></HTML>