.. include:: /Includes.rst.txt .. _imagelinkwrap: imageLinkWrap ============= .. contents:: :local: :depth: 1 Properties ---------- .. container:: ts-properties ===================================================== ===================================================================== ======= ================== Property Data types stdWrap Default ===================================================== ===================================================================== ======= ================== :typoscript:`imageLinkWrap =` :ref:`data-type-boolean` yes 0 enable_ = :ref:`data-type-boolean` yes 0 file_ = :ref:`stdwrap` yes width_ = :ref:`data-type-positive-integer` yes height_ = :ref:`data-type-positive-integer` yes effects_ = like :ref:`gifbuilder-effect` of :ref:`GIFBUILDER` yes sample_ = :ref:`data-type-boolean` yes 0 alternativeTempPath_ = :ref:`data-type-path` yes title_ = :ref:`data-type-string` yes bodyTag_ = :ref:`data-type-tag` yes wrap_ = :ref:`data-type-wrap` (?) target_ = :ref:`data-type-target` yes "thePicture" JSwindow_ = :ref:`data-type-boolean` yes JSwindow.expand_ = :typoscript:`x`, :typoscript:`y` (both :ref:`data-type-integer`) yes JSwindow.newWindow_ = :ref:`data-type-boolean` yes JSwindow.altUrl_ = :ref:`data-type-string` yes `JSwindow.altUrl\_noDefaultParams`_ = :ref:`data-type-boolean` (?) 0 typolink_ = like :ref:`typolink` (?) directImageLink_ = :ref:`data-type-boolean` yes 0 linkParams_ = any of the options of :ref:`typolink` (?) stdWrap_ = :ref:`stdwrap` yes ===================================================== ===================================================================== ======= ================== Property details ---------------- .. contents:: :local: :depth: 1 enable ~~~~~~ :typoscript:`imageLinkWrap.enable =` :ref:`data-type-boolean` Whether or not to link the image. Must be set to True to make :typoscript:`imageLinkWrap` do anything at all. file ~~~~ :typoscript:`imageLinkWrap.file =` :ref:`stdwrap` Apply :ref:`stdwrap` functionality to the file path. width ~~~~~ :typoscript:`imageLinkWrap.width =` :ref:`data-type-positive-integer` Width of the image to be shown in pixels. If you add "m" to :typoscript:`width` or :typoscript:`height` or both then the width and height parameters will be interpreted as maximum and proportions of the image will be preserved. height ~~~~~~ :typoscript:`imageLinkWrap.height =` :ref:`data-type-positive-integer` Width of the image to be shown in pixels. If you add "m" to :typoscript:`width` or :typoscript:`height` or both then the width and height parameters will be interpreted as maximum and proportions of the image will be preserved. effects ~~~~~~~ :typoscript:`imageLinkWrap.effects =` like :ref:`gifbuilder-effect` of :ref:`GIFBUILDER` Apply image effects to the preview image. Example for effects """"""""""""""""""" .. code-block:: typoscript imageLinkWrap { effects = gamma=1.3 | sharpen=80 | solarize=70 # effects only works when directImageLink is FALSE directImageLink = 0 # at most 800 pixels wide. Keep proportions. width = 800m # at most 600 pixels wide. Keep proportions. height = 600m } sample ~~~~~~ :typoscript:`imageLinkWrap.sample =` :ref:`data-type-boolean` :typoscript:`sample` is a switch which determines how the image processor (often GraphicsMagick or ImageMagick) calculates the preview image. If :typoscript:`sample` is true then `- sample` is used with GraphicsMagick or ImageMagick instead of `- geometry` to calculate the preview image. `sample` does not use antialiasing and is therefore much faster than the `geometry` procedure of GraphicsMagick or ImageMagick. alternativeTempPath ~~~~~~~~~~~~~~~~~~~ :typoscript:`imageLinkWrap.alternativeTempPath =` :ref:`data-type-path` This is used to specify an alternative path to be used for temporary images. title ~~~~~ :typoscript:`imageLinkWrap.title =` :ref:`data-type-string` Specifies the html-page-title of the preview window. Needs :typoscript:`JSwindow = 1`. bodyTag ~~~~~~~ :typoscript:`imageLinkWrap.bodyTag =` :ref:`data-type-tag` This is the `
`-tag of the preview window. Needs :typoscript:`JSwindow = 1`. Example: .. code-block:: typoscript # with all margins set to zero the window will exactly fit the image. # "onBlur" closes the window automatically if it looses focus imageLinkWrap.JSwindow = 1 imageLinkWrap.bodyTag ( ) wrap ~~~~ :typoscript:`imageLinkWrap.wrap =` :ref:`data-type-wrap` This wrap is placed around the ``-tag in the preview window. Needs :typoscript:`JSwindow = 1`. target ~~~~~~ :typoscript:`imageLinkWrap.target =` :ref:`data-type-target` This specifies the `target` attribute of the link. The attribute will only be created if the current :ref:`Doctype