Code Monkey home page Code Monkey logo

Comments (2)

sharonmleon avatar sharonmleon commented on July 20, 2024

@zerocrates I'm not sure that I'm competent to update this one.

from omeka-s-enduser.

allanaaa avatar allanaaa commented on July 20, 2024

It looks like this is done - current text of this page is

The thumbnails configuration key holds most thumbnail settings:

'thumbnails' => [
    'types' => [
        'large' => ['constraint' => 800],
        'medium' => ['constraint' => 200],
        'square' => ['constraint' => 200],
    ],
    'thumbnailer_options' => [
        'imagemagick_dir' => null,
    ],
],

Under types, set the maximum dimensions for derivative images for media files. There are separate options for large, medium, and square. Defaults for these are 800, 200, and 200 respectively (all sizes are pixels)

thumbnailer_options is an array of options passed to the specific thumbnailer in use. For example, the imagemagick_dir thumbnail option sets the path to the folder where ImageMagick's convert command can be found on the server. This can be useful if Omeka S can't auto-detect the correct path for ImageMagick.

The thumbnailer to use is set under the service_manager key, by setting the alias for Omeka\File\Thumbnailer:

'service_manager' => [
    'aliases' => [
        'Omeka\File\Thumbnailer' => 'Omeka\File\Thumbnailer\ImageMagick',
    ],
],

The default thubnailer is Omeka\File\Thumbnailer\ImageMagick. Also available are Omeka\File\Thumbnailer\Imagick (which uses the imagick PHP extension) and Omeka\File\Thumbnailer\Gd (which uses the commonly available gd PHP extension).

You can also set the thumbnailer to Omeka\File\Thumbnailer\NoThumbnail, which will prevent your Omeka S installation from generating thumbnails.

from omeka-s-enduser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.