Thumbnail Image Quality

View: New views
6 Messages — Rating Filter:   Alert me  

Thumbnail Image Quality

by Matthew Prose :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hello,

I would like to alter the thumbnail image when uploading a new image  
to the library.  I would like to increase the quality of the upload.  
I found this file: farcry/core/packages/farcry/image.cfc and found  
some quality references and changed them to 100 instead of 70, but  
this did nothing.  I even reinitialized the app.  What else could be  
causing the thumbnail to be such low quality?

Matt

--~--~---------~--~----~------------~-------~--~----~
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: farcry-dev@...
To unsubscribe, email: farcry-dev+unsubscribe@...
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
-~----------~----~----~----~------~----~------~--~---


Re: Thumbnail Image Quality

by Jeff Coughlin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Matt,

That is because the built-in image manipulation in FarCry currently  
uses the native java JAI to do image manipulation (the native JAI in  
java doesn't offer the best quality).

Have you considered one of the two available image manipulation  
plugins for FarCry?
1. There's the FarCry CFXImage plugin (requires Windows as the CF  
server)
   http://docs.farcrycms.org/display/FCPLUG/FarCry+CFXImage
2. And there the FarCry CFImage plugin (best quality, but requires CF8  
or better)
   http://docs.farcrycms.org/display/FCPLUG/FarCry+CFImage

Both work in FarCry 4 and FarCry 5.  By using the plugin, all image  
manipulation used by FarCry formtools (basically everything by  
default) will automatically use the new image manipulation plugin to  
override the default JAI image tools.

Regards,

--
Jeff Coughlin
Web Application Developer
http://jeffcoughlin.com/blog

On Oct 20, 2009, at 10:18 AM, Matthew Prose wrote:

>
> Hello,
>
> I would like to alter the thumbnail image when uploading a new image
> to the library.  I would like to increase the quality of the upload.
> I found this file: farcry/core/packages/farcry/image.cfc and found
> some quality references and changed them to 100 instead of 70, but
> this did nothing.  I even reinitialized the app.  What else could be
> causing the thumbnail to be such low quality?
>
> Matt

--~--~---------~--~----~------------~-------~--~----~
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: farcry-dev@...
To unsubscribe, email: farcry-dev+unsubscribe@...
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
-~----------~----~----~----~------~----~------~--~---


Re: Thumbnail Image Quality

by Matthew Prose :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Nice, Thanks Jeff!

Matt

On Oct 20, 2009, at 1:43 PM, Jeff Coughlin wrote:

>
> Matt,
>
> That is because the built-in image manipulation in FarCry currently
> uses the native java JAI to do image manipulation (the native JAI in
> java doesn't offer the best quality).
>
> Have you considered one of the two available image manipulation
> plugins for FarCry?
> 1. There's the FarCry CFXImage plugin (requires Windows as the CF
> server)
>   http://docs.farcrycms.org/display/FCPLUG/FarCry+CFXImage
> 2. And there the FarCry CFImage plugin (best quality, but requires CF8
> or better)
>   http://docs.farcrycms.org/display/FCPLUG/FarCry+CFImage
>
> Both work in FarCry 4 and FarCry 5.  By using the plugin, all image
> manipulation used by FarCry formtools (basically everything by
> default) will automatically use the new image manipulation plugin to
> override the default JAI image tools.
>
> Regards,
>
> --
> Jeff Coughlin
> Web Application Developer
> http://jeffcoughlin.com/blog
>
> On Oct 20, 2009, at 10:18 AM, Matthew Prose wrote:
>
>>
>> Hello,
>>
>> I would like to alter the thumbnail image when uploading a new image
>> to the library.  I would like to increase the quality of the upload.
>> I found this file: farcry/core/packages/farcry/image.cfc and found
>> some quality references and changed them to 100 instead of 70, but
>> this did nothing.  I even reinitialized the app.  What else could be
>> causing the thumbnail to be such low quality?
>>
>> Matt
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: farcry-dev@...
To unsubscribe, email: farcry-dev+unsubscribe@...
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
-~----------~----~----~----~------~----~------~--~---


Re: Thumbnail Image Quality

by Matthew Prose :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Okay, I have not been able to get a plugin working when I have already installed a project.

How do I know this is installed and working properly?  Where can I adjust the settings for the image uploaded? The documentation says to change the code in:

I do not have a packages folder in my project folder.  Does this have something to do with how I setup farcry on the server?

Matt

On Oct 20, 2009, at 1:43 PM, Jeff Coughlin wrote:


Matt,

That is because the built-in image manipulation in FarCry currently  
uses the native java JAI to do image manipulation (the native JAI in  
java doesn't offer the best quality).

Have you considered one of the two available image manipulation  
plugins for FarCry?
1. There's the FarCry CFXImage plugin (requires Windows as the CF  
server)
  http://docs.farcrycms.org/display/FCPLUG/FarCry+CFXImage
2. And there the FarCry CFImage plugin (best quality, but requires CF8  
or better)
  http://docs.farcrycms.org/display/FCPLUG/FarCry+CFImage

Both work in FarCry 4 and FarCry 5.  By using the plugin, all image  
manipulation used by FarCry formtools (basically everything by  
default) will automatically use the new image manipulation plugin to  
override the default JAI image tools.

Regards,

--
Jeff Coughlin
Web Application Developer
http://jeffcoughlin.com/blog

On Oct 20, 2009, at 10:18 AM, Matthew Prose wrote:


Hello,

I would like to alter the thumbnail image when uploading a new image
to the library.  I would like to increase the quality of the upload.
I found this file: farcry/core/packages/farcry/image.cfc and found
some quality references and changed them to 100 instead of 70, but
this did nothing.  I even reinitialized the app.  What else could be
causing the thumbnail to be such low quality?

Matt





--~--~---------~--~----~------------~-------~--~----~
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: farcry-dev@...
To unsubscribe, email: farcry-dev+unsubscribe@...
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
-~----------~----~----~----~------~----~------~--~---


Re: Thumbnail Image Quality

by Jeff Coughlin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Matt,

It only affects images you create *after* you've installed the plugin.

Also that example cfc file I gave is just for your custom types.  In this case you don't have any custom types nor have you likely extended the default dmImage object to add custom sizes to the default image library.

If you want to modify existing images, you have two options.  You can either edit each image and recreate the thumbnails from source, or if you have a lot of images you can run a batch script to update them all.  You are welcome to use the batch script I recently released (see this blog post http://bit.ly/1EN24c), but if you're not too familiar with FarCry development just yet you might not want to venture down that road just yet (I'm not currently offering support on that script).  If you want to go down that road I'd strongly advise getting up to speed on FarCry development first (most notably custom types).  The FarCry Developer Jump Start Course is the best place to start for that http://docs.farcrycms.org/display/FCDEV50/Book+of+FarCry

Regards,

--
Jeff Coughlin
Web Application Developer
http://jeffcoughlin.com/blog


On Tue, Oct 20, 2009 at 4:22 PM, Matthew Prose wrote:
Okay, I have not been able to get a plugin working when I have already installed a project.

How do I know this is installed and working properly?  Where can I adjust the settings for the image uploaded? The documentation says to change the code in:

I do not have a packages folder in my project folder.  Does this have something to do with how I setup farcry on the server?

Matt



--~--~---------~--~----~------------~-------~--~----~
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: farcry-dev@...
To unsubscribe, email: farcry-dev+unsubscribe@...
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
-~----------~----~----~----~------~----~------~--~---


Re: Thumbnail Image Quality

by Martin Orth :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hello Matt,

generating high quality thumbnails is not as easy as it seems. Take a
look at the following recource:
http://today.java.net/pub/a/today/2007/04/03/perils-of-image-getscaledinstance.html

Thanks

Martin

2009/10/20 Matthew Prose <matthew.prose@...>:

>
> Hello,
>
> I would like to alter the thumbnail image when uploading a new image
> to the library.  I would like to increase the quality of the upload.
> I found this file: farcry/core/packages/farcry/image.cfc and found
> some quality references and changed them to 100 instead of 70, but
> this did nothing.  I even reinitialized the app.  What else could be
> causing the thumbnail to be such low quality?
>
> Matt
>
> >
>



--
Martin Orth und Dagmar Pilatzki GbR
Schau ins Land 7
51429 Bergisch Gladbach
Tel. 02202 862512

--~--~---------~--~----~------------~-------~--~----~
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: farcry-dev@...
To unsubscribe, email: farcry-dev+unsubscribe@...
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
-~----------~----~----~----~------~----~------~--~---