question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make "arrayjoin: not one band or 4 bands" error report more helpful

See original GitHub issue

Is 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:open
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jcupittcommented, Dec 27, 2020

Args should link to enums now, eg.:

https://libvips.github.io/pyvips/vimage.html#pyvips.Image.colourspace

I credited you in the changelog.

1reaction
jcupittcommented, Dec 27, 2020

I made an enhancement issue for linking enum args to the relevant enum, thanks for the suggestion.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found