[ 
https://issues.apache.org/jira/browse/OPENMEETINGS-247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13267278#comment-13267278
 ] 

George Kirkham commented on OPENMEETINGS-247:
---------------------------------------------

Hi, After further testing it is the zoom value which is worthwhile, however 
this makes files larger and so there may be a point to having both the zoom and 
jpegquality settings adjustable.

To make such a change, I have identified the following possible code areas 
which would need changing, however as I am not familiar with OpenMeetings code, 
so there is a high possibility that there is more changes required (like 
ensuring that values are within appropriate ranges.  My hope is the below 
information may assist with a change to the code.

==============================================
./src/install_step1_EN.vm:271: 
./build/classes/openmeetings/install_step1_EN.vm:271:
./src/.svn/text-base/install_step1_EN.vm.svn-base:271:

<label for="swftools_zoom">SWFTools Zoom</label>
<input name="swftools_zoom" id="swftools_zoom" size="27" title="Enter the dpi 
that swftools will use for PDF to SWF conversion." type="text" />
<label for="swftools_jpegquality">SWFTools JPEG quality</label>
<input name="swftools_jpegquality" id="swftools_jpegquality" size="27" 
title="Enter the quality of embedded jpeg pictures to quality. 0 is worst 
(small), 100 is best (big). (default:85)" type="text" />

=============================================
./src/org/openmeetings/app/installation/.svn/text-base/ImportInitvalues.java.svn-base:298:
              cfgManagement.addConfByKey(3, "swftools_zoom", cfg.swfPath, "120",
./src/org/openmeetings/app/installation/.svn/text-base/ImportInitvalues.java.svn-base:298:
              cfgManagement.addConfByKey(3, "swftools_jpegquality", 
cfg.swfPath, "85",

./src/org/openmeetings/app/installation/ImportInitvalues.java:298:              
cfgManagement.addConfByKey(3, "swftools_zoom", cfg.swfZoom, null,
./src/org/openmeetings/app/installation/ImportInitvalues.java:298:              
cfgManagement.addConfByKey(3, "swftools_jpegquality", cfg.swfJpegQuality, null,


./src/org/openmeetings/app/documents/.svn/text-base/GenerateSWF.java.svn-base:46:
               String pathToSWFTools = 
cfgManagement.getConfValue("swftools_zoom", String.class, "");
./src/org/openmeetings/app/documents/.svn/text-base/GenerateSWF.java.svn-base:46:
               String pathToSWFTools = 
cfgManagement.getConfValue("swftools_jpegquality", String.class, "");
./src/org/openmeetings/app/documents/GenerateSWF.java:46:               String 
pathToSWFTools = cfgManagement.getConfValue("swftools_zoom", String.class, "");
./src/org/openmeetings/app/documents/GenerateSWF.java:46:               String 
pathToSWFTools = cfgManagement.getConfValue("swftools_jpegquality", 
String.class, "");


./src/org/openmeetings/servlet/outputhandler/Install.java:245:                  
                cfg.swfPath = httpServletRequest.getParameter("swftools_zoom");
./src/org/openmeetings/servlet/outputhandler/Install.java:245:                  
                cfg.swfPath = 
httpServletRequest.getParameter("swftools_jpegquality");
./src/org/openmeetings/servlet/outputhandler/.svn/text-base/Install.java.svn-base:245:
                                  cfg.swfPath = 
httpServletRequest.getParameter("swftools_zoom");
./src/org/openmeetings/servlet/outputhandler/.svn/text-base/Install.java.svn-base:245:
                                  cfg.swfPath = 
httpServletRequest.getParameter("swftools_jpegquality");
=============================================
 
                
> Make document conversion quality an administrator changeable option
> -------------------------------------------------------------------
>
>                 Key: OPENMEETINGS-247
>                 URL: https://issues.apache.org/jira/browse/OPENMEETINGS-247
>             Project: Openmeetings
>          Issue Type: Improvement
>          Components: Converters
>    Affects Versions: 2.0 Apache Incubator Release
>         Environment: Debian Squeeze,  
> openmeetings-2.0.0.r1328537-20-04-2012_2319.tar.gz (Build #43)
>            Reporter: George Kirkham
>              Labels: configuration, conversion, converter, quality
>             Fix For: 2.0 Apache Incubator Release
>
>
> I have the need to improve the quality of converted PDF, Word or PowerPoint 
> files, that is increase the resolution of the conversion process for   Word 
> PDF and PowerPoint files are converted to *.swf files.
> Currently the quality of any images within converted documents is so poor 
> that we cannot clearly read the text within the images contained in documents.
> This may be able to be resolved by allowing the quality of file conversion to 
> be adjustable in the administration section of OpenMeeting or in the 
> config.xml file.
>  
> Checking the OpenMeetings log it would seem that it is using pdf2swf without 
> any "-j" setting, I found this in the log file;
> args: [/usr/local/bin/pdf2swf, -s, insertstop, -s, poly2bitmap, -I, 
> /user/lib/red5/webapps/openmeetings/upload/files/le8...
> Checking some of the source code I noticed that in the code these does not 
> appear that the "-j" option is being used, therefore I guess the default 
> value of 85% is being used when converting documents.
>  
> -j , --jpegquality quality     Set quality of embedded jpeg pictures to 
> quality. 0 is worst (small), 100 is best (big). (default:85)
>  
> I could not find any settings in the 
> /usr/lib/red5/webapps/openmeetings/config.xml file for the pdf2swf arguments.
>  
> And I don't think that I can change this in OpenMeetings, it is most likely 
> set somewhere in the source code?
>  
> Sadly I have never managed to successfully build OpenMeetings using "ant", 
> but checking the source code, maybe the place to add the "-j" option may be 
> in;
> ./openmeetings/trunk/singlewebapp/src/org/openmeetings/app/documents/GenerateSWF.java
>   line 216
> // Create the Content of the Converter Script (.bat or .sh file)
>  
> I wonder if the developers would be able to add the "-j" option as a user 
> setting, and allow this value to be adjustable by administrators?
>     

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to