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

pdf will not generate for resource with both tiff and jp2 derivatives #6585

Open
hackartisan opened this issue Jan 7, 2025 · 1 comment
Open

Comments

@hackartisan
Copy link
Member

resource: https://figgy.princeton.edu/catalog/726c3bd1-10a7-4f29-b53b-38445033b0e9

honeybadger: https://app.honeybadger.io/projects/53391/faults/109671930

There's a 400 bad request error.

When I go to the iiif-image-production bucket and look for one of the pyramidal tiffs it doesn't seem to be there.

I tried regenerating all the derivatives for the resource members but that didn't resolve it.

@hackartisan
Copy link
Member Author

Maybe adding removal of jp2 derivatives to the cleanup derivatives routine would help resolve.

def cleanup_derivatives
deleted_files = []
pyramidal_derivatives = resource.file_metadata.select { |file| file.derivative? && file.mime_type.include?("image/tiff") }
pyramidal_derivatives.each do |file|
storage_adapter.delete(id: file.file_identifiers.first)
deleted_files << file.id
end
cleanup_derivative_metadata(derivatives: deleted_files)
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant