Isn't FreeBSD compiling things from source? It could be that the order in which you install your packages is important in that case. If you first install py27-pillow-3.4.2 without jpeg-8_7 present, it's possible that Pillow (the python library providing image scale services) is compiled without jpeg support. If you install jpeg later, (and support devel packages for that library if they're not bundled in the same package) you'll have to uninstall/reinstall Pillow.
jpeg-turbo-1.5.1 SIMD-accelerated JPEG codec which replaces libjpeg
libjpeg-turbo-1.5.1 SIMD-accelerated JPEG codec library, provides libTurboJPEG
openjpeg-2.1.2_1 Open-source JPEG 2000 codec
giflib-5.1.4 Tools and library routines for working with GIF images
jbigkit-2.1_1 Lossless compression for bi-level images such as scanned pages, faxes
png-1.6.27 Library for manipulating PNG images
py27-imagesize-0.7.1 Python image size library
tiff-4.0.7_1 Tools and library routines for working with TIFF images
webp-0.5.2 Google WebP image format conversion tool
py27-pillow-3.4.2 Fork of the Python Imaging Library (PIL)
2017-02-21T13:00:17 ERROR root could not scale "<plone.namedfile.file.NamedBlobImage object at 0x820204668>" of 'http://x.y.z.k:8080/teste/eventos/brasao.jpg'
Traceback (most recent call last):
File "/usr/local/Plone/plonegov/eggs/plone.namedfile-2.0.5-py2.7.egg/plone/namedfile/scaling.py", line 256, in create
**parameters)
File "build/bdist.freebsd-10.1-RELEASE-amd64/egg/plone/scale/scale.py", line 43, in scaleImage
image.save(result, format, quality=quality, optimize=True, progressive=True)
File "build/bdist.freebsd-11.0-RELEASE-p2-amd64/egg/PIL/Image.py", line 1433, in save
self.load()
File "build/bdist.freebsd-11.0-RELEASE-p2-amd64/egg/PIL/ImageFile.py", line 191, in load
d = Image._getdecoder(self.mode, d, a, self.decoderconfig)
File "build/bdist.freebsd-11.0-RELEASE-p2-amd64/egg/PIL/Image.py", line 392, in _getdecoder
raise IOError("decoder %s not available" % decoder_name)
IOError: decoder jpeg not available
Which means that your PIL (Pillow) library in build/bdist.freebsd-11.0-RELEASE-p2-amd64/egg/PIL is still not capable to load jpeg files. This is indeed a Python/FreeBSD specific problem, not a Plone one.
My FreeBSD knowledge is a bit aged (last time I used it >12years ago). I would say there was some problem while building the package from the sources.
Specifically PIL/Pillow contains only the features where it has libraries available at build/compile time. It do not complain if a feature is missing, but then you can not load the file type.
You may ask at Pillow or FreeBSD forums/mailing lists for more specific information unless someone with more knowledge pops up here.
i solved the problem through downgrade from FreeBSD 11 to FreeBSD 10.3. The package py-pillow in FreeBSD 11 has some problem. Something seems broken. So, when i installed 10.3 worked fine.