Difference: ImagePlugin (1 vs. 3)

Revision 3
10 Nov 2013 - Main.AdminUser
Line: 1 to 1
 

ImagePlugin

Revision 2
10 Nov 2013 - Main.AdminUser
Line: 1 to 1
Deleted:
<
<

<--

PLEASE DO NOT EDIT THIS TOPIC

It is automatically generated from the subversion repository, and any changes you make will simply be overwritten the next time a release is generated.

Instead, you could check your fix in, raise a bug in the Bugs web, or mail the authors. -->
 

ImagePlugin

Line: 82 to 70
 
alt alt text image filename
caption caption text empty
class (see html specs) imageFrame, imageFloat, ... depending on the type
Added:
>
>
crop on/northwest/north/northeast/west/center/east/southwest/south/southeast/off: scrop the image to fit the image into the given aspect ratio; other values than on/off specify the area the croped image gravitates to relative to the original (on=center) off
data json added to the image class used by the jquery stub empty
 
desc description text title text
footer text to be appended to the html output empty
format image layout format string set by type argument
Line: 93 to 83
 
mouseout javascript executed if moving the mouse off the image empty
refresh on/off/img to trigger recomputing images off
size geometry specification image geometry
Deleted:
<
<
zoom on/off to scale images, if set to "on" scaling up images is allowed, otherwise it downscales only off
 
style (see html specs) empty
title title text alt value
Added:
>
>
tooltipheight height of tooltip image 300
 
tooltip on/off off
Added:
>
>
tooltipcrop on/northwest/north/northeast/west/center/east/southwest/south/southeast/off: same as crop but used for the tooltip  
 
tooltipwidth width of tooltip image 300
Deleted:
<
<
tooltipheight height of tooltip image 300
 
topic valid topic name topic part of IMGALBUM value or current topic
type simple, plain, link, thumb[nail], frame, float plain
warn on/off, surpress error warnings on
web valid web name web part of IMGALBUM value or current topic
width integer value image width
Added:
>
>
zoom on/off to scale images, if set to "on" scaling up images is allowed, otherwise it downscales only off
 

Tooltip preview

The tooltip argument allows rendering image previews in a tooltip. This option
Line: 133 to 124
 
$alt value of alt argumet
$caption caption text
$class value of class argumet
Added:
>
>
$data value of data argumet
 
$desc value of desc argument
$dollar replaced with dollar sign ($)
$height image height
Line: 148 to 140
 
$origwidth image width of the original image
$percnt replaced with percent sign (%)
$src image source url
Added:
>
>
$thumbfile thumbnail image file name
 
$style value of style argumet
$text link text to be displayed in the "link" layout type
$title value of title argument
Line: 164 to 157
  on the fly. This handler is then called in an img tag like this:
Changed:
<
<
<img src='/foswiki/pub/rest/ImagePlugin/resize?
>
>
<img src='/foswiki/bin/rest/ImagePlugin/resize?
  topic=web.topic; file=attachment; width=300;
Line: 213 to 206
  $Foswiki::cfg{ImagePlugin}{AutoAttachExternalImages} = 1;
Deleted:
<
<

Attaching auto-generated thumbnails

Automatically generated thumbnails are attached to the current topic when you switch on

$Foswiki::cfg{ImagePlugin}{AutoAttachThumbnails} = 1;

This might be of interest when you'd like to access these thumbnails using other plugins.
 

Image processing backend

The plugin makes use of either CPAN:Image::Magick or Graphics::Magick, a fork of the former. Both are compatible as far as they are used here. Graphics::Magick does seem
Line: 242 to 226
 

Plugin Info

Plugin Author: Craig Meyer, Foswiki:Main.MichaelDaum
Changed:
<
<
Copyright: © 2006, Craig Meyer,
© 2006-2010 Michael Daum http://michaeldaumconsulting.com
>
>
Copyright: © 2006, Craig Meyer,
© 2006-2013 Michael Daum http://michaeldaumconsulting.com
 
License: GPL (GNU General Public License)
Changed:
<
<
Release: 2.31
Version: 6307 (2010-02-12)
>
>
Version: 3.11
 
Change History:
<-- versions below in reverse order -->
 
Added:
>
>
8 May 2013: return a 1x1 pixel when calling the image rest handler for a non-existing image
24 May 2013: update thumbnails whenever a new image of the same name was uploaded
6 May 2013: some more svg fixes; cleaning up thumbnails now when images are renamed or moved
9 Oct 2012: added svg support
6 Aug 2012: respect noautolink tags when rendering external image links
25 Jun 2012: fixed attaching external images to the right topic; removed unused option AutoAttachThumbnails; fixed processing of non-attached external images; fixed downloading of urls that look like image links but return a different content type
09 Jan 2012: added new option 'thumbfile' to format string (Foswiki:Main/JoenioCosta); speed improvement by not "ping-ing" each image on display; rendering thumbnails using newer method available in image::magick 6.5.x, the old method faild resizing and cropping on some platforms; removing longdesc from default image templates; now also caching urls to external images that include url params
29 Jun 2011: fixed detection of image links to the own wiki not to try an external download+mirror
10 Jan 2011: fixed parsing of mediawiki like params; fixed jquery interface to foswiki preferences; fixed dependency on ZonePlugin to only be required for old foswiki versions; make result of resize REST service cacheable, i.e. don't use a redirect; fixed expansion of standard escapes; improved crop parameter to specify the location of the remaining image relative to the original; added data parameter to interface with jquery code; using md5 now to properly cache thumbnails; mirroring external images now obeys the ATTACHFILESIZELIMIT preference;
 
12 Feb 2010: made imagetooltip a proper jQuery plugin; using Foswiki:Extensions/ZonePlugin for faster page loads
17 Nov 2009: added zoom parameter; fixed manual refresh via url params
24 Sep 2009: updated imageplugin.template to help XHTML validation (stop rendering empty id attribute)
Line: 282 to 289
 
17 Aug 2006: width and height arguments had no effect; floating images not clearing proberly on IE
16 June 2006: released into the public
10 May 2006: Initial version by forking ImgPlugin
Changed:
<
<
Dependency: $Foswiki::Plugins::VERSION 1.1
CPAN Dependencies:
NameVersionDescription
Image::Magick>=6.2.4.5Required.
LWP::UserAgent>=0Required.
Graphics::Magick>=1.1.11Optional.
Foswiki::Plugins::JQueryPlugin>=3740Optional.
Foswiki::Plugins::ZonePlugin>=1.0Required.
Other Dependencies:  
Perl Version: 5.8
>
>
Dependencies:
NameVersionDescription
Image::Magick>=6.2.4.5Required.
LWP::UserAgent>=0Required.
Graphics::Magick>=1.1.11Optional.
Foswiki::Plugins::JQueryPlugin>=4.40Required.
Foswiki::Contrib::XSendFileContrib>=1.00Optional.
Foswiki::Plugins::ZonePlugin>=1.0Required. required for Foswiki < 1.1
 
Home: Foswiki:Extensions/ImagePlugin
Support: Foswiki:Support/ImagePlugin
Changed:
<
<
META FILEATTACHMENT attr="h" comment="" date="1185796830" name="WestminstpalaceSample.png" path="WestminstpalaceSample.png" size="107728" user="ProjectContributor" version="1"
META FILEATTACHMENT attachment="logo.gif" attr="h" date="1266012865" name="logo.gif" path="http://www.google.com/intl/en_ALL/images/logo.gif" size="8558" user="ProjectContributor" version="1"
>
>
META FILEATTACHMENT attachment="WestminstpalaceSample.png" attr="" comment="" date="1375962051" name="WestminstpalaceSample.png" size="107728" user="BaseUserMapping_333" version="1"
META FILEATTACHMENT attachment="logo.gif" attr="" comment="" date="1375962051" name="logo.gif" size="8558" user="BaseUserMapping_333" version="1"
META FILEATTACHMENT attachment="style.css" attr="" comment="" date="1375962051" name="style.css" size="1140" user="BaseUserMapping_333" version="2"
META FILEATTACHMENT attachment="jquery.imagetooltip.js.gz" attr="" comment="" date="1375962051" name="jquery.imagetooltip.js.gz" size="419" user="BaseUserMapping_333" version="2"
META FILEATTACHMENT attachment="jquery.imagetooltip.uncompressed.js" attr="" comment="" date="1375962051" name="jquery.imagetooltip.uncompressed.js" size="976" user="BaseUserMapping_333" version="2"
META FILEATTACHMENT attachment="jquery.imagetooltip.js" attr="" comment="" date="1375962051" name="jquery.imagetooltip.js" size="604" user="BaseUserMapping_333" version="2"
META FILEATTACHMENT attachment="style.uncompressed.css" attr="" comment="" date="1375962051" name="style.uncompressed.css" size="1721" user="BaseUserMapping_333" version="2"
META FILEATTACHMENT attachment="magnify-clip.png" attr="" comment="" date="1375962051" name="magnify-clip.png" size="267" user="BaseUserMapping_333" version="1"
META FILEATTACHMENT attachment="style.css.gz" attr="" comment="" date="1375962051" name="style.css.gz" size="439" user="BaseUserMapping_333" version="2"
META FILEATTACHMENT attachment="Makefile" attr="" comment="" date="1375962051" name="Makefile" size="151" user="BaseUserMapping_333" version="2"
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback