Does Lucee support this format?
Hi Zac,
Do you mean for image manipulation, like resizing, etc⦠?
Kind regards,
Andrew
about.me http://about.me/andrew_dixon - mso http://www.mso.net - Lucee
Association Member http://lucee.orgOn 23 July 2016 at 09:38, Zac Spitzer <@Zac_Spitzer> wrote:
Does Lucee support this format?
ā
Get 10% off of the regular price for this years CFCamp in Munich, Germany
(Oct. 20th & 21st) with the Lucee discount code Lucee@cfcamp. 189ā¬
instead of 210ā¬. Visit
CFCamp 2016You received this message because you are subscribed to the Google Groups
āLuceeā group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAArGWaTYj5Lh1Mu5bJ%2B7Smx6qf0KAzzamPWWGj_t_-PNj%3DDerg%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAArGWaTYj5Lh1Mu5bJ%2B7Smx6qf0KAzzamPWWGj_t_-PNj%3DDerg%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.
yup!On Sat, Jul 23, 2016 at 3:29 PM, Andrew Dixon <@Andrew_Dixon> wrote:
Hi Zac,
Do you mean for image manipulation, like resizing, etc⦠?
Kind regards,
Andrew
about.me http://about.me/andrew_dixon - mso http://www.mso.net - Lucee
Association Member http://lucee.orgOn 23 July 2016 at 09:38, Zac Spitzer <@Zac_Spitzer> wrote:
Does Lucee support this format?
ā
Get 10% off of the regular price for this years CFCamp in Munich, Germany
(Oct. 20th & 21st) with the Lucee discount code Lucee@cfcamp. 189ā¬
instead of 210ā¬. Visit
CFCamp 2016You received this message because you are subscribed to the Google Groups
āLuceeā group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAArGWaTYj5Lh1Mu5bJ%2B7Smx6qf0KAzzamPWWGj_t_-PNj%3DDerg%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAArGWaTYj5Lh1Mu5bJ%2B7Smx6qf0KAzzamPWWGj_t_-PNj%3DDerg%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.ā
Get 10% off of the regular price for this years CFCamp in Munich, Germany
(Oct. 20th & 21st) with the Lucee discount code Lucee@cfcamp. 189ā¬
instead of 210ā¬. Visit
CFCamp 2016You received this message because you are subscribed to the Google Groups
āLuceeā group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAG1WijXW8Xwhn8SRz5_VZrno6Dup%3DrNcf4SULqyY-aJzGsEYjQ%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAG1WijXW8Xwhn8SRz5_VZrno6Dup%3DrNcf4SULqyY-aJzGsEYjQ%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.
ā
Zac Spitzer
+61 405 847 168
I think its time for cfimage to support .webp that has been around for 10 years now and grewing more popular.
I took a quick look at extension-image. There is a webp-imageio.jar (apache 2.0 license) on github. I fixed ImageUtil.java to add image/webp mimetype but now I get an error that it canāt read Google sample image. Traced to Coder.java toBufferedImage() which I assume loads JRECoder.java. I donāt know enough Java. The bundle shows active for the webp-imageio,jar in Admin. Will work on some more later.
I donāt see a bug report for webp, so someone might want to add one.
Hello, has anyone managed to get the image extension in Lucee to accept .webp image format? It would be an excellent addition. I am getting errors when trying to use this.
Thanks.
You would need imageMagick support added to java / tomcat.
there was JMagik, but its seems dated.
You could just call the command with cfexecute
you could do something like:```
< CFEXECUTE
magick my.png -quality 55 -define webp:lossless=true my.webp >
Is there instructions on how to install imageMagick in tomcat? I am trying to do this through a content management system where when an image is uploaded it will generate several sizes of the image. If I am able to install imageMagick in tomcat is there anything else I need to do in Lucee to get it to recognize webp formats?
FYI. I tried and couldnāt get past the error above. My test java program worked fine. I might look at it again later.
adding webp to the image extension is on the roadmap, imageio with osgi and tomcat is a bit tricky
@CentricWeb I wished I could have responded earlier, but I have lot of work at the moment.
Iāve been using ImageMagick for more than 15years and never switched to cfimage when it was later implemented in CFML. I might change that in future, but ImageMagick is extremly powerfull and versatile, and when there was any new fancy thing about images going on in the net, ImageMagick always have been the best path to go (at least for us).
I canāt say how reliable ImageMagick is with .webp, and we have just moved to ImageMagick-7.0.11-3-Q16-HDRI-x64-dll.exe (this is the setup file) recently.
However, basically itās just how @Terry_Whitney already pointed out: You install ImageMagick, and then it will be available to CFML by using the cfexecute command (here an example as cftag to convert images using the legacy ImageMagick commandline. You might want to switch it to the actual command line āmagick convert ā¦ā):
<cfexecute name="C:\Program Files\ImageMagick-7.0.11-3-Q16\Convert.exe"
arguments="D:\path-to-your-source\image.jpg -resize x150 -quality 100 -sharpen 0x1.2 D:\path-to-your-destination\image-t.jpg"
variable="local.imageinformation"
timeout="5">
</cfexecute>
<cfdump var="#local.imageinformation#">
BUT (!!!) you need to make sure you have the correct permissions set up for those paths, since Lucee runs as ālocal serviceā as a good security praxis. You might need to tweak the permissions for writing/reading files to those locations and maybe also execution permissions, but that youāll see then when implementing it.
For further reference see:
@andreas Thank you for this. It will require me to modify my content management system, but I will give it a go. I did read on the ImageMagick site that they do support webp format. It might take me awhile to get it set up but if it works it will be a huge help.
Please consider AVIF as well. Most browsers does support this format already.