Re: Dexterity - TAL Expression to Display Images from Blobstorage | Check Pillow

Armin Stroß-Radschinski <[email protected]>
Newsgroups gmane.comp.web.zope.plone.user
Message-ID <[email protected]>
Hi Andreas,
make sure to verify that your current Pillow aka PIL works already for the default image type!

I had issues with some recent Pillow versions in the last month related to loading the right libraries of the OS.
Fire up a second Plone in the same instance and check if image scaling works at all.

Usually you are working in a dev instance! right? and then you may not check this first.
If this doesnt work as well GIYF.

-- Armin

Am 07.12.2014 um 19:09 schrieb Andreas Mantke <[email protected]>:

> Hi Asko,
> 
> Am 06.12.2014 um 11:24 schrieb Asko Soukka:
>> Hi Andreas,
>> 
>> have tried the following methods (included in Plone by default):
>> 
>>    https://pypi.python.org/pypi/plone.app.imaging
>> 
>> e.g.
>> 
>>    img tal:replace="structure context/@@images/image/mini" />
>> 
>> where 'image' is the fieldname.
>> 
> thanks for the hint. I got the first issue fixed. I could display / load
> the logo from the eupproject.py now:
> 
> <tal:results
>                 define="batch python:Batch(results, b_size,
> int(b_start), orphan=1);">
> <ul class="downloads">
> <li tal:repeat="result batch">
> <tal:entry
>              define="project result/getObject;
>             (...)>
> (...)
> <span class="project-thumb" tal:condition="not:screenshot">
> <img tal:condition="project/project_logo|nothing"
>         tal:replace="structure project/@@images/project_logo" />
> </span>
> 
> (...)
> 
> Scaling of an image doesn't work yet (see the traceback in my other email).
> 
> Regards,
> Andreas


--
Armin Carl Stroß-Radschinski | [email protected] | Twitter: @syncmitter 
Dipl. Designer FH | project-consultant | fon +49 171 21 94699 | IRC: acsr | Skype: astrossradschinski

ACSR industrialdesign | Armin Stroß-Radschinski 
Landgrafenstraße 32 · 53842 Troisdorf · Germany | UST. ID Nr: DE154092803 (EU VAT ID)
[email protected] | www.acsr.de | phone +49 2241 946994 · fax +49 2241 946996

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk

_______________________________________________
Plone-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plone-users
signature.asc (application/pgp-signature, 496 B)
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQEcBAEBCgAGBQJUhJnHAAoJEDsfPhYo1lBVdYkH/2LSjkWx4OsJlxZOaUbioXsb
Mpm030S4jXbwrVItxkps8xFaaHvQGUwk1dOdbqjULRXj9SgQFWTiG+PXY9xm69Al
9WreDy+IWSBLWsDIzsVbvGjvcDDh46C1p6VwkYKmPkfrH3mgYmouNoClUWUvMeLN
znBNNcLhUXSiq9xxS3Zqk6Tkt403qUIcC7+mX6KvPo0y62lF/LNPgfwlxgtYTb0V
WE0/W+hd+khyEYYI23cmyAtyghd/CzC/44QElbA073hv2xniET38iabmPr0LkQX5
F3j7RclRloujYcxjSgKVST7X1WgqB4iy1k6gEq6grYG1zzu3JWXj/nxEEyXm/vU=
=Rfoo
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.