Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Internet > Plone Extensions

    Products.croppingimage 0.2 RC2

    Download button

    No screenshots available
    Downloads: 115  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Ben Mason | More programs
    GPL / FREE
    September 1st, 2011, 14:02 GMT [view history]
    ROOT / Internet / Plone Extensions

     Read user reviews (0)  Refer to a friend  Subscribe

    Products.croppingimage description

    ImageField that crops images that do not fit the expected ratio

    Products.croppingimage is a Plone product that will resize all images to the dimensions you specify, but instead of stretching, it will scale the images and crop the overhang.

    For some examples how to configure CroppingImageField and result pictures see docs/examples.txt or the Project page on http://plone.org/products/cropping-imagefield

    To use the field:

    from croppingimage.field import CroppingImageField

    CroppingImageField(
     name = 'image',
     long_edge_size = 600,
     short_edge_size = 450,

     # use this if you don't want portrait images to scale to (450x600) (see docs/examples.txt)
     force_format = 'landscape',

     sizes= {'large' : (600, 450),
     'medium' : (300, 225),
     'thumb' : (125, 94),},
     widget = ImageWidget(label= "Image",)


    This will create an attribute called "image" with the sizes thumb, medium, large as given.

    This will be accessible as object/image, and the sizes as:

     object/image_thumb
     object/image_medium
     object/image_large



    Product's homepage

    Requirements:

    · Python
    · Plone CMS

    What's New in This Release: [ read full changelog ]

    · History.txt renamed to CHANGES to be support collective.releaser
    · removed float parsing for VERSION in config.py to make "0.2rc1" work too.
    · added a README.txt file to skins directory hoping it will make the skins directory available in the egg release too.

      


    TAGS:

    crop images | image thumbnail | crop | images | thumbnail

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM