Replies: 5 comments 6 replies
-
I think your issue is that the thumbnails are already created for that file
name so they are not recreated.
A workaround is to rename your files.
…On Mon, Nov 27, 2023 at 11:28 AM timnis ***@***.***> wrote:
Hi, I know this is not how PG2 was designed to use but I still ask.
I just testing to use PG2 to view CAD milling/lathe drawings (.pdf) and
steel laser cutting drawings (.dxf) which are converted to png images
(useing pdftoppm and ezdxf). PG2 works really fast showing those small
images (<200kb). However I have problems when I generate updates of the
drawings and copying to PG2's images folder to replace older ones . After
copying PG2 fails to index those again. I have try reset PG2 keeping
configs but not succeed.
So, is there a way to replace all or some image (images may not be exact
copies) in PG2 and get indexing/thumbnails creation to work? Or maybe
delete old container and create new one with keeping same config?
—
Reply to this email directly, view it on GitHub
<#787>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABZKA5R6CG22QURJZJQPTGLYGRTNXAVCNFSM6AAAAAA73ZHLZKVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZVHA4TMMBTGA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Alternatively delete the temp folder. (or selectively delete files from
there)
On Mon, Nov 27, 2023 at 11:42 AM Patrik J. Braun ***@***.***>
wrote:
… I think your issue is that the thumbnails are already created for that
file name so they are not recreated.
A workaround is to rename your files.
On Mon, Nov 27, 2023 at 11:28 AM timnis ***@***.***> wrote:
> Hi, I know this is not how PG2 was designed to use but I still ask.
>
> I just testing to use PG2 to view CAD milling/lathe drawings (.pdf) and
> steel laser cutting drawings (.dxf) which are converted to png images
> (useing pdftoppm and ezdxf). PG2 works really fast showing those small
> images (<200kb). However I have problems when I generate updates of the
> drawings and copying to PG2's images folder to replace older ones . After
> copying PG2 fails to index those again. I have try reset PG2 keeping
> configs but not succeed.
>
> So, is there a way to replace all or some image (images may not be exact
> copies) in PG2 and get indexing/thumbnails creation to work? Or maybe
> delete old container and create new one with keeping same config?
>
> —
> Reply to this email directly, view it on GitHub
> <#787>, or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABZKA5R6CG22QURJZJQPTGLYGRTNXAVCNFSM6AAAAAA73ZHLZKVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZVHA4TMMBTGA>
> .
> You are receiving this because you are subscribed to this thread.Message
> ID: ***@***.***>
>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Short answer yes.
Pigallery2 does not considered modified time when creating the name of the
thumbnail and preview (big thumbnail) photo.
So you weather need to rename the original photo as the name of the
original photo name is used to generate the thumbnail photo name.
If a thumbnail already exists the app won't recreate it.
If you want a better solution, I would appreciate it you could send a PR
that adds last modified time to the thumbnail name here:
https://github.com/bpatrik/pigallery2/blob/master/src/backend/model/fileaccess/fileprocessing/PhotoProcessing.ts#L111-L122
This also has a pair where it checks if the name is valid. I had some
similar commits recently you can check that.
Also:
Pg2 now has some extension support, you should be able to implement an
image renderer for PDFs so pdf would work out of the box. (Zoom won't work
tho as during zoom the app loads the original file)
…-- Sorry for being brief, sent from my phone.
On Mon, 27 Nov 2023, 11:44 timnis, ***@***.***> wrote:
So it should work if I replaces images in PG2 images folder and delete
temp content?
—
Reply to this email directly, view it on GitHub
<#787 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABZKA5VFO43ICTTVGI4PB2DYGRVIJAVCNFSM6AAAAAA73ZHLZKVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TMNZZGU2TO>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Just tested with delete tmp folder and copy new images.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Cab you enable debug logs?
…-- Sorry for being brief, sent from my phone.
On Mon, 27 Nov 2023, 15:40 timnis, ***@***.***> wrote:
Just tested with delete tmp folder and copy new images.
now thumbnail generation fails, any ideas?
11/27/2023, 2:36:52 PM[INFO_][JOB] Running job : Thumbnail Generation
11/27/2023, 2:36:53 PM[ERROR][JOB] Job failed with:
11/27/2023, 2:36:53 PM[ERROR][JOB] TypeError: Cannot read properties of null (reading 'creationDate')
at /app/src/backend/model/threading/DiskMangerWorker.js:182:63
at Array.forEach (<anonymous>)
at DiskMangerWorker.scanDirectory (/app/src/backend/model/threading/DiskMangerWorker.js:181:29)
at async DiskManager.scanDirectory (/app/src/backend/model/DiskManger.js:30:26)
at async ThumbnailGenerationJob.loadADirectoryFromDisk (/app/src/backend/model/jobs/jobs/FileJob.js:111:25)
at async ThumbnailGenerationJob.step (/app/src/backend/model/jobs/jobs/FileJob.js:67:17)
at async /app/src/backend/model/jobs/jobs/Job.js:101:22
—
Reply to this email directly, view it on GitHub
<#787 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABZKA5XO3E4VVYIMVUKFKADYGSQ5PAVCNFSM6AAAAAA73ZHLZKVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TMOBRG4ZDE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I know this is not how PG2 was designed to use but I still ask.
I just testing to use PG2 to view CAD milling/lathe drawings (.pdf) and steel laser cutting drawings (.dxf) which are converted to png images (useing pdftoppm and ezdxf). PG2 works really fast showing those small images (<200kb). However I have problems when I generate updates of the drawings and copying to PG2's images folder to replace older ones . After copying PG2 fails to index those again. I have try reset PG2 keeping configs but not succeed.
So, is there a way to replace all or some image (images may not be exact copies) in PG2 and get indexing/thumbnails creation to work? Or maybe delete old container and create new one with keeping same config?
Beta Was this translation helpful? Give feedback.
All reactions