Comments (5)
Hi @AmazTING,
I would write your program like this:
import pyvips
image1 = pyvips.Image.new_from_file('3.png', access='sequential')
image2 = pyvips.Image.new_from_file('4.png', access='sequential')
image3 = pyvips.Image.new_from_file('2.png', access='sequential')
image4 = pyvips.Image.new_from_file('1.png', access='sequential')
final = pyvips.Image.arrayjoin([image1, image2, image3, image4], across=2)
final.write_to_file('final.png')
As for the error, I would guess final.png
is just too big for PNG. Maybe try some other format? Tiled TIFF with deflate compression is close to PNG and has no size limit.
I would test with much smaller images first.
from pyvips.
If that's all the processing you need to do, you can also do that arrayjoin
from the command-line:
vips.exe arrayjoin "3.png 4.png 2.png 1.png" final.png --across 2 --vips-progress
And get a progress ticker too.
You could try:
vips.exe arrayjoin "3.png 4.png 2.png 1.png" final.tif[compression=deflate,tile] --across 2 --vips-progress
To experiment with deflate tiled tiff.
from pyvips.
I attempted the second of the two command line options and received a different error:
TIFFAppendToStrip: Maximum TIFF file size exceeded vips2tiff: TIFF write tile failed wbuffer_write: write failed TIFFWriteDirectoryTagData: Maximum TIFF file size exceeded
from pyvips.
Ok, I just had to enable the "bigtiff" option and it worked.
from pyvips.
Great! I'm glad it worked.
You need to be slightly careful with deflate tiled tiff -- not every program will support this type of TIFF file.
from pyvips.
Related Issues (20)
- new release when & ship with libvips? HOT 14
- ICC Profile Application on SVS and tiffsave hangs randomly
- High RAM usage with fetch when reading multiple WSI tiles HOT 2
- Slower first run, even without cache HOT 2
- using resource.setrlimit makes pyvips / liborc spit the dummy HOT 2
- Memory leaking with pdf HOT 21
- dzsave_target returns NoneType not list[] as in docs HOT 1
- Pyvips fetch returns bad image on .svs files HOT 4
- Reading in image a second time breaks on qptiff file HOT 6
- Documentation link to conda package HOT 1
- Create svs file with image pyramid, label and macro in pyvips? HOT 4
- Image merge stitch HOT 2
- `addalpha` has different behaviour compared to C HOT 1
- Error installing pyvips on Mac OS HOT 15
- draw_rect fill error HOT 2
- creating tiles of 16bit multiband (4 band) tiff image leaves black canvas HOT 4
- class "jxlsave" not found HOT 9
- Assertion failed: sp->cinfo.comm.is_decompressor HOT 3
- Help installing pyvips for jupyter HOT 5
- `TIFFFillTile: Read error` when writing a TIFF file on a per-tile basis. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyvips.