Forums

CollectiveAccess Support Forum » Troubleshooting

Media Processing - adding a rule

(2 posts)

No tags yet.


  1. farooq
    Member

    Hello,
    I want to add a new display version for images. I created a new version in media_processing.conf as

    custom= {
    RULE = rule_custom_image, VOLUME = images
    },

    Now, I want the to define a rule, rule_custom_image, in which it display is like this, if the image size is less than 700px by 600px, it shows the image with original size and if it is greater than the above size, then it shows the image in 700/600 keeping the aspect ratio.

    Regards,
    Farooq

    Posted 2 months ago #
  2. seth
    Developer

    There's no way to keep the size as-is other than to not do any processing at all, as is done with the "original" rules. All of the existing SCALE directives change dimensions to hit a specific target, even if that means scaling an image up.

    This could change... but the current behavior has not been a problem to date.

    seth

    Posted 2 months ago #

RSS feed for this topic

Reply

You must log in to post.