Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicates images when creating previews #3266

Open
prolibre opened this issue Jan 29, 2024 · 0 comments
Open

Duplicates images when creating previews #3266

prolibre opened this issue Jan 29, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@prolibre
Copy link

prolibre commented Jan 29, 2024

I'm opening a new ticket... the developers are going to curse me :-)

I've noticed some duplication when creating preview images. In fact, I just had an example in front of me.
Someone has rated a book and I have two successive tasks:
bookwyrm.preview_images.generate_edition_preview_image_task

with the same args (44461,) but with two different UIDDs.
As a result, I have two images in my images/previews/covers folder

40599-b5dac480-45c0-417a-a29d-1f05914d97db.jpg
and
40599-b5dac480-45c0-417a-a29d-1f05914d97db_YeAgDq0.jpg

Of course, only one is attached to the book in question.

It's not an exceptional bug because I have lots of duplicate images with slightly different names.

These duplicate images are in addition to the bug concerning the non-deletion of cover images #2996 :-(
Just so you know, I clean up regularly with bash and delete a lot of useless images (I don't know python and unfortunately I can't contribute to Bookwyrm because of this).

@prolibre prolibre added the bug Something isn't working label Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant