Re: Re: preconfiguring / -parametering image cropping in special objects
Niels Dettenbach <[email protected]> Thu, 25 Aug 2011 09:29:32 +0200
| Newsgroups | gmane.comp.cms.zms.devel |
|---|---|
| Organization | Syndicat IT&Internet |
| Message-ID | <1578678.nCcESZZNZl@gongo> |
Hello Dr. Hoffmann, many thanks for your posting here. Am Mittwoch, 24. August 2011, 12:42:43 schrieben Sie: > Hello, > you can use the trigger events > _versionmanager.onChangeObj: onChangeObjEvt > ... > _blobfields.thumbnailImage > Please consider that there must be a REQUEST variable > 'generate_preview_%s_%s'%(hiresKey,lang) > set to 1 to trigger the default scaling. > Maybe this small hint helps. This is afair similiar to that way we use for fully automatic resampling / resizing of ZMS images - images are "just" resampled / resized to a given resolution / dimensions or thumbnailed. Bit our problem is, that many screenlayouts use fixed width thumbnails (i.e. 100x100 pixel or "1/1") while users typically have (and want to upload) image files width very different dimensions (i.e. 500x200, 640x480, 480x620 etc...). The only practicable solution from our view is to let the user (human) select a suitable (correctly dimensioned) part of that image. As you might know (or used for the ZMS functionality) the former "zmsgraphic_extedit" from CMESS (used in the Gallery object): http://zmslabs.org/trac/browser/CMESS/zmsgraphic_extedit?rev=986 it allowed to: - pre-set cropping and resize dimensions. - extending the editor with further functionality I thought these code (or principe) was "going into" ZMS (core) now as it seems very similiar in parts and it would make really sense to have such a way of a flexible interface to ZMS applications, allowing ZMS admins / devels to adopt it within their own objects and / or extend the image editor as required (like the ZMSText editor is "extensible" now). Unfortunately these code just works as an "action" with "ZMSGpraphic" objects and may overlay with the future image edit functionality of core ZMS: Are there any plannings to implement this or should i prefer CMESSs zmsgraphic_extedit for this? Many thanks to all - ZMS 2.13 is very nice work!... best regards, Niels. -- --- Niels Dettenbach Syndicat IT&Internet http://www.syndicat.com/
signature.asc
(application/pgp-signature, 836 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) iQIcBAABCAAGBQJOVfnjAAoJEM78prARigUn84MP/054Hh5xi9EULE48TV6dw/et OaGFeSHy77wCdTZz1uhSwafmjFPrlgiNaeVx2o3b8BgeD7YrDGc2jx+nrBmwkzck t9l7DHWFHRgcyEzBsPgNHaUIs63m7Ir9dtTUS+95p6gLBvBjSW6Jlgkpng0Gybra 4bAYgcxylYjmRajYDlwgLHgg2x+lhjIA9kCzNg5A9AJ4prKCFvxhb7tNQmmteRBl ATVcTjItX/tu1GQsOF8CsBDpzMZy5uxflUmW+cJTdB83Ulf8KRYHR37JkWEO+rjk W6niND6K2ircd69Px/XBmF9XTUiK9roBT1VMZqkdhw3uC6urN4JCgXLNeqD4eROl 6wYRPbjDDUr+/LUFgpEU++BgKJMzeZSavQXTj29JuV6dZxTs8gAq9Xzci+EOGAel Gar7BocCWEPCEnD3r5wh6XRZ6eztH56r0RaplHBh8D7cJqbwsi8Sdeh+6BIcsqNb qBOdsk/V+cdPSSy4bNuQhfkcSk7Fu1iU/mlxciyFjwjBv2s3TMZ2Im2QFK/XYxSA lM0gpAKH/ou9iMfd8yCIgtqrZjZmtWXQeBBNtZw9/QwJryH4MN6USPzhKlXoTVYo BzqhB4lN+RW4Gi6schVZ353rh99QHdwBtlyEAWMFXxyPfQcRyplp68GGBDkcUvAr 3bwj7tJyG+r8jD+iSq2j =2efU -----END PGP SIGNATURE-----