HTML-FromMail

 view release on metacpan or  search on metacpan

lib/HTML/FromMail/Default/Previewers.pod  view on Meta::CPAN

        <blockquote><cite>
        <!--{text}-->&nbsp;...
        </cite></blockquote>
     <!--{/html}-->
  <!--{/preview}-->

=item B<previewImage>($page, $mssage, $part, \%attach, \%options)

Produce a small preview of the html, where first the title is taken
and put in bold. The rest of the header is removed.  Then the first
characters of the rest of the content are displayed.

 -Option        --Default
  img_max_height  250
  img_max_width   250

=over 2

=item img_max_height => INTEGER

=item img_max_width => INTEGER

=back

» example: of a plain text preview with the Text::MagicTemplate formatter

  <!--{preview img_max_width => 200, img_max_height => 200}-->
     <!--{image}-->
     <!--{/image}-->
  <!--{/preview}-->

=item B<previewText>($page, $mssage, $part, \%attach, \%options)

Produce a small preview of the text, where all wrappig is removed.

 -Option        --Default
  text_max_chars  250

=over 2

=item text_max_chars => INTEGER

=back

» example: of a plain text preview with the Text::MagicTemplate formatter

  <!--{preview text_max_chars => 120}-->
     <!--{html}-->
        <blockquote><cite>
        <!--{text}-->&nbsp;...
        </cite></blockquote>
     <!--{/html}-->
  <!--{/preview}-->

=back

=head1 DIAGNOSTICS

=over 4

=item Warning: Image::Magick not installed.

Cast by C<previewImage()>

=item Error: cannot read image from $fn: $error

Cast by C<previewImage()>

=item Error: cannot resize image from $fn: $error

Cast by C<previewImage()>

=item Error: cannot write smaller image from $fn to $out: $error

Cast by C<previewImage()>

=back

=head1 SEE ALSO

This module is part of HTML-FromMail version 4.00,
built on December 11, 2025. Website: F<http://perl.overmeer.net/CPAN/>

=head1 LICENSE

For contributors see file ChangeLog.

This software is copyright (c) 2003-2025 by Mark Overmeer.

This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.



( run in 0.646 second using v1.01-cache-2.11-cpan-39bf76dae61 )