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

bug: 32 bit and new tiff dont get along on some images. this is an attempt to fix this #494

Merged
merged 1 commit into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,12 @@ jobs:
matrix:
os: [ubuntu-20.04, macos-14, windows-2019]
node: [13.14.0, 14.0.0, 15.7.0, 16.13.1, 17.6.0, 18.8.0, 19.0.0, 20.0.0]
architecture: [x64, arm64]
architecture: [x64, ia32, arm64]
include:
- python_version: "3.10"
- architecture: ia32
architecture_node: x86
target_architecture: ia32
- architecture: x64
architecture_node: x64
target_architecture: x64
Expand All @@ -51,6 +54,10 @@ jobs:
architecture: arm64
- os: windows-2019
architecture: arm64
- os: macos-14
architecture: ia32
- os: ubuntu-20.04
architecture: ia32
- os: macos-14
node: 13.14.0
architecture: arm64
Expand Down
5 changes: 5 additions & 0 deletions src/deps/LibTiff/binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@
"defines": [
'HAVE_UNISTD_H=1'
]
}],
['target_arch == "ia32"', {
"defines": [
'SIZEOF_SIZE_T=4'
]
}]
],
'include_dirs': [
Expand Down
4 changes: 3 additions & 1 deletion src/deps/LibTiff/tif_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,10 @@
/* Define to the home page for this package. */
#define PACKAGE_URL ""

/* Size of size_t */
/* Size of size_t, allowing external override */
#ifndef SIZEOF_SIZE_T
#define SIZEOF_SIZE_T 8
#endif


/** Maximum number of TIFF IFDs that libtiff can iterate through in a file. */
Expand Down