Make "arrayjoin: not one band or 4 bands" error report more helpful
See original GitHub issueIs your feature request related to a problem? Please describe. When getting this error on a script someone else wrote it’s not obvious what’s happening and what the problem is without searching an explanation on the web.
Describe the solution you’d like Adding something like
You may need to convert all images to the same color space.
pyvips.Image.colourspace
function may help with that.
Additional context Trying to just generate a text on a transparent background is unnecessarily complex and lacks an example that’s easy to find.
Code fix example
vips_image = Vips.Image.pngload(png_pathname)
if vips_image.interpretation != 'srgb':
vips_image = vips_image.colourspace('srgb')
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Image — pyvips 2.2.1 documentation - GitHub Pages
Use a single number to make a one-band image; use an array constant to make a many-band ... Return the largest integral value...
Read more >vips - Go Packages
Package vips provides go bindings for libvips, a fast image ... func (r *ImageRef) ArrayJoin(images []*ImageRef, across int) error ...
Read more >pyvips Image composite not working as expected
Your black() + (1, 2, 3, 4) will make a four band image with interpretation set to multiband . This will be interpreted...
Read more >Class: Vips::Image — Documentation for ruby-vips (2.1.4)
Create a new Image for an image encoded in a format such as JPEG in a binary string. ... Return the largest integral...
Read more >STILTS - Starlink Tables Infrastructure Library Tool Set
If you make a parameter assignment on the command line for a parameter which is not used by the task in question, STILTS...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Args should link to enums now, eg.:
https://libvips.github.io/pyvips/vimage.html#pyvips.Image.colourspace
I credited you in the changelog.
I made an enhancement issue for linking enum args to the relevant enum, thanks for the suggestion.