I've tried installing several versions of Ghostscript ranging from
8.54 through 8.71 and using 32-bit and 64-bit variants too.
I can successfully upload PDFs to ResourceSpace and my thumbnails and
full page previews are generated perfectly. During the upload of a
PDF I can see the gs.exe process running and closing properly when the
upload process completes.
Interestingly, I had this same problem running on Windows Server 2003
and IIS6.
Are there any thoughts on this? Thanks ahead of time.
Can you find any errors or anything that would suggest what is getting held up?
> --
> You received this message because you are subscribed to the Google Groups "ResourceSpace" group.
> To post to this group, send email to resour...@googlegroups.com.
> To unsubscribe from this group, send email to resourcespac...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/resourcespace?hl=en.
>
>
--
Tom Gleason, PHP Developer
DBA Impressive Design
Exploring ResourceSpace at:
http://resourcespace.blogspot.com
At the moment I don't have any errors that appear, but I also don't
have any sort of logging turned on either for Ghostscript. Actually,
I don't know if anything exists. I checked the Windows Event viewer
and didn't see any problems listed there.
I'm wondering if there's a way to pass a "-dBATCH" or "-c quit" switch
at the end of the gs command that ResourceSpace issues for execution?
I was reading about that possibility here:
http://pages.cs.wisc.edu/~ghost/doc/cvs/Use.htm#Interaction_related_parameters
The CPU utilization of gs.exe process just sits at 0% when viewing the
contact sheet page and the memory utilitzation stays the same and does
not grow either, so I'm not sure what's going on with it. Is there a
way to see the actual command that RS issues when it needs it?
Thanks,
John
> > For more options, visit this group athttp://groups.google.com/group/resourcespace?hl=en.
have a look at contactsheet.php, which has grown probably overly
complex (since i added some extra font supports for linux) but you
might try adding -dBATCH to the ghostscript command (somewhere around
line 330..) and otherwise compare that command with the commands in
preview_preprocessing that ARE working for you.
> For more options, visit this group at http://groups.google.com/group/resourcespace?hl=en.
I found the command in contactsheet.php like you said. I changed the
following line from this:
if (!file_exists($command)) {$command= $ghostscript_path. "\gs.exe";}
to this:
if (!file_exists($command)) {$command= $ghostscript_path. "\gs.exe -c
quit";}
...and the contact sheet preview now works perfectly along with the
creation of the PDF. It's also very fast too in that the gs.exe
process doesn't run long enough to even appear in the process list of
Windows Task Manager. The CPU utilization pops up to 15% for a split
second and then it's done.
Also, I checked uploading PDFs and my thumbnail creation and full
screen previews are still created successfully too. I was fearing
that I'd fix one area, but screw up another for a moment.
BTW, what's the code editor you use? WordPad works fine, but I like
the one you were using in your YouTube RS demonstration videos.
Thanks again Tom.
John
On Apr 6, 3:02 pm, Tom Gleason <theorysav...@gmail.com> wrote:
> Sounds like you are capable of doing some debug.
>
> have a look at contactsheet.php, which has grown probably overly
> complex (since i added some extra font supports for linux) but you
> might try adding -dBATCH to the ghostscript command (somewhere around
> line 330..) and otherwise compare that command with the commands in
> preview_preprocessing that ARE working for you.
>
>
>
>
>
> On Tue, Apr 6, 2010 at 3:40 PM, Tech Patriot <j...@techpatriot.com> wrote:
> > Hi Tom and thanks for your speedy feedback.
>
> > At the moment I don't have any errors that appear, but I also don't
> > have any sort of logging turned on either for Ghostscript. Actually,
> > I don't know if anything exists. I checked the Windows Event viewer
> > and didn't see any problems listed there.
>
> > I'm wondering if there's a way to pass a "-dBATCH" or "-c quit" switch
> > at the end of the gs command that ResourceSpace issues for execution?
> > I was reading about that possibility here:
> >http://pages.cs.wisc.edu/~ghost/doc/cvs/Use.htm#Interaction_related_p...
I use Geany on Linux....really great editor.
> For more options, visit this group at http://groups.google.com/group/resourcespace?hl=en.
Next I tried using the "-dBATCH" switch. Interestingly, the preview
DID appear AND it was the correct one each time I made changes to the
preview settings. However, I would have to click the "create" button
two times in a row in order to bring up the "save as" dialog box.
Some times when I clicked the "create" button I would get a "500
internal server error" page too. It's looking like "-dBATCH" actually
causes more problems than it's worth.
The results were identical between Windows Server 2003 32-bit with
IIS6 and Windows Server 2008 R2 (this OS is only available as 64-bit)
with IIS 7.5.
Maybe a combination of switches will help remedy this, so I'll
continue to hack around a bit.
Thanks,
John
> For more options, visit this group at http://groups.google.com/group/resourcespace?hl=en.
Changing this line in contactsheet.php:
$command.= " -sDEVICE=jpeg -dFirstPage=$previewpage -r100 -dLastPage=
$previewpage -sOutputFile=\"".
to this:
$command.= " -sDEVICE=jpeg -dFirstPage=$previewpage -r100 -o -
dLastPage=$previewpage -sOutputFile=\"".
Seems to have fixed all issues on a Windows system.
The "-o" is the same as "-dBATCH -dNOPAUSE".
Placing the "-o" in the correct spot was also important. It should
not go with "gs.exe" or placed before the "-dFirstPage" switch either
in the $command line.
Thanks,
John
> For more options, visit this group at http://groups.google.com/group/resourcespace?hl=en.