Using the latest 1.96 (32-bit) version. I added the included pdf, but when I add a crop action it crashes.
It works find with other pdf files. The file size is 23 Meg. Is there a limit?
I would include it here but it is too large so I uploaded to here: https://ufile.io/hqox2tgm
Link updated
And yes I have Ghostscript 9.24
XnConvert 1.96 [Final 32-bit version] Crash when attempting to crop large file
Moderators: XnTriq, helmut, xnview
-
- Posts: 21
- Joined: Wed Dec 28, 2016 10:19 am
XnConvert 1.96 [Final 32-bit version] Crash when attempting to crop large file
Last edited by wfa on Sat Nov 26, 2022 8:11 pm, edited 1 time in total.
-
- XnThusiast
- Posts: 4213
- Joined: Sun Apr 29, 2012 9:45 am
- Location: Cheltenham, U.K.
Re: XnConvert 1.96 Crash
I tried your download link and it didn't open for me, could you please check it, or could it be a procedural error on my part...wfa wrote: ↑Sat Nov 26, 2022 12:35 pm Using the latest 1.96 (32-bit) version. I added the included pdf, but when I add a crop action it crashes.
It works find with other pdf files. The file size is 23 Meg. Is there a limit?
I would include it here but it is too large so I uploaded to here: https://tmpfiles.org/dl/319424/00005-0152.pdf
And yes I have Ghostscript 9.24
Ghostscript 9.24 32-bit, I presume?
The issue you are experiencing may possibly be due to the fact that 32-bit systems have an addressable memory limit that can sometimes be reached when working with images with unusually large pixel dimensions.
-
- Posts: 21
- Joined: Wed Dec 28, 2016 10:19 am
Re: XnConvert 1.96 [Final 32-bit version] Crash when attempting to crop large file
I updated the link to the 24Meg file. Maybe you are right.
But what about this 4 Meg file: https://ufile.io/1vh159fo
But what about this 4 Meg file: https://ufile.io/1vh159fo
-
- XnThusiast
- Posts: 4213
- Joined: Sun Apr 29, 2012 9:45 am
- Location: Cheltenham, U.K.
Re: XnConvert 1.96 [Final 32-bit version] Crash when attempting to crop large file
Your smaller 4MB PDF has very large pixel dimensions, so quite possibly your problem is the limit on the RAM addressable by 32-bit systems:
Opening and starting to work with it on my 64-bit system also resulted in a crash, but probably only due to insufficient free RAM with all the applications and files that I have open at the moment. So I can't confirm whether the PDF is valid, or might possibly have a separate issue, probably not?
Opening and starting to work with it on my 64-bit system also resulted in a crash, but probably only due to insufficient free RAM with all the applications and files that I have open at the moment. So I can't confirm whether the PDF is valid, or might possibly have a separate issue, probably not?
You do not have the required permissions to view the files attached to this post.
-
- XnThusiast
- Posts: 4213
- Joined: Sun Apr 29, 2012 9:45 am
- Location: Cheltenham, U.K.
Re: XnConvert 1.96 [Final 32-bit version] Crash when attempting to crop large file
@wfa: I have opened your file on another laptop with much more free memory, and although operations are very slow due to the large pixel dimensions, I have not encountered any other obvious issue.
I was going to extract the four pages and attach them for you in the expectation that you would be able to use those, but encountered the problem that even compressing the output PDF file using JPEG compression with a low quality setting, the individual page file sizes are much larger than the file size of the four-page PDF that you provided.
Could you please tell me how you compressed the file to which you linked, and whether you still need a solution to the original problem? For some reason the file properties shown in my screenshot above indicate that the file is not compressed, whereas the uncompressed size of the first page alone is >1.0 GB.
Note that PDF files opened in XnView software are rasterised by Ghostscript at the resolution set in the XnView application: the resolution of your file read in another software is 300 DPI.
I was going to extract the four pages and attach them for you in the expectation that you would be able to use those, but encountered the problem that even compressing the output PDF file using JPEG compression with a low quality setting, the individual page file sizes are much larger than the file size of the four-page PDF that you provided.
Could you please tell me how you compressed the file to which you linked, and whether you still need a solution to the original problem? For some reason the file properties shown in my screenshot above indicate that the file is not compressed, whereas the uncompressed size of the first page alone is >1.0 GB.
Note that PDF files opened in XnView software are rasterised by Ghostscript at the resolution set in the XnView application: the resolution of your file read in another software is 300 DPI.
-
- Posts: 21
- Joined: Wed Dec 28, 2016 10:19 am
Re: XnConvert 1.96 [Final 32-bit version] Crash when attempting to crop large file
I didn't create the PDF, it was downloaded from another site.
My intention is to crop the pages and remove the black border around the image. I will be trying to develop my own tool using PDFium software https://pdfium.googlesource.com/pdfium/ ... /README.md . I would use Delphi+Winsoft (https://www.winsoft.sk/pdfium.htm) to build the tool. Notice that the viewer demo on WinSoft page easily opens the large PDF file.
I really appreciate your input.
BTW, I have 64 GB memory with 24 GB free, I know that the 32bit doesn't make use of large memory.
My intention is to crop the pages and remove the black border around the image. I will be trying to develop my own tool using PDFium software https://pdfium.googlesource.com/pdfium/ ... /README.md . I would use Delphi+Winsoft (https://www.winsoft.sk/pdfium.htm) to build the tool. Notice that the viewer demo on WinSoft page easily opens the large PDF file.
I really appreciate your input.
BTW, I have 64 GB memory with 24 GB free, I know that the 32bit doesn't make use of large memory.
-
- XnThusiast
- Posts: 4213
- Joined: Sun Apr 29, 2012 9:45 am
- Location: Cheltenham, U.K.
Re: XnConvert 1.96 [Final 32-bit version] Crash when attempting to crop large file
Well, good luck with your development work!
I have now realised that sending you the pages separately probably wouldn't actually help, as I think XnView opens each page individually as you step through them, and so you probably would still need about the same amount of addressable RAM...
However, having had more of a look at the pages, you could probably reduce the DPI from 300 to 150, or even possibly 75 DPI, with acceptable quality, but again that might not be possible with your amount of RAM.
I have also confirmed that, as in my previous experience, images with very large numbers of pixels can often be saved with very low 'quality' settings, such as 30% or maybe even less, with acceptable results.
A reference: 2 GB limit although the exact value is possibly slightly higher, I think.
I have now realised that sending you the pages separately probably wouldn't actually help, as I think XnView opens each page individually as you step through them, and so you probably would still need about the same amount of addressable RAM...
However, having had more of a look at the pages, you could probably reduce the DPI from 300 to 150, or even possibly 75 DPI, with acceptable quality, but again that might not be possible with your amount of RAM.
I have also confirmed that, as in my previous experience, images with very large numbers of pixels can often be saved with very low 'quality' settings, such as 30% or maybe even less, with acceptable results.
A reference: 2 GB limit although the exact value is possibly slightly higher, I think.