vigra_impex bug creates 'arithmetic coded' JPEG output

Bug #798952 reported by Bruno Postle
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Enblend
Fix Released
High
Unassigned

Bug Description

vigra_impex has a bug which effectively means all JPEG output is 'arithmetic coded' (rather than huffman coded) if the version of libjpeg supports it.

This is a problem as arithmetic coding isn't very portable, e.g. the enblend 4.0 in fedora f15 is creating these JPEGs whenever JPEG is selected for output.

The upstream vigra fix is these two changesets:
http://www.informatik.uni-hamburg.de/~meine/hg/vigra/rev/e54137017af7
http://www.informatik.uni-hamburg.de/~meine/hg/vigra/rev/f5e29e0bdfe0

It probably isn't worth backporting all this to enblend, a simple fix is to just comment out src/vigra_impex/jpeg.cxx line 421.

Revision history for this message
Yuv (yuv) wrote :

I just noticed that you don't have write access to enblend's repo. fixed it. you now have admin privileges on the enblend project as well.

Changed in enblend:
status: New → Confirmed
Revision history for this message
Matthew Petroff (matthewpetroff) wrote :

This issue is still in the trunk. I ran into it producing test builds with the new graph-cut seam generator. I had to change src/vigra_impex/jpeg.cxx line 421 from "info.arith_code = TRUE;" to "info.arith_code = FALSE;" to get the JPEGs produced to open in most software.

Revision history for this message
Bruno Postle (brunopostle) wrote : Re: [Bug 798952] Re: vigra_impex bug creates 'arithmetic coded' JPEG output

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Body:

On Tue 21-Jun-2011 at 13:38 -0000, Yuv wrote:
>I just noticed that you don't have write access to enblend's repo.
>fixed it. you now have admin privileges on the enblend project as well.

Thanks, I committed the one line workaround.

  status fixcommitted

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFOYTe+FqOhwCjyCLoRAkNOAKCwSqaVvWKbEE1vx8nQgneiNzE1VwCeN3Oe
goUiYivw48fiWoxcN+V63Zo=
=Mg+V
-----END PGP SIGNATURE-----

Changed in enblend:
status: Confirmed → Fix Committed
tmodes (tmodes)
Changed in enblend:
status: Fix Committed → Fix Released
Revision history for this message
jay armstrong (jayarmstrong) wrote :

what version of enblend was this released in?

I'm trying to track down a bug but can't tell if it's this one. Thanks!

Revision history for this message
tduell (tduell-iinet) wrote : Re: [Hugin-bug-hunters] [Bug 798952] Re: vigra_impex bug creates 'arithmetic coded' JPEG output

Hello Jay,

On Tue, 22 Oct 2013 04:23:25 +1100, jay armstrong
<email address hidden> wrote:

> what version of enblend was this released in?
>
> I'm trying to track down a bug but can't tell if it's this one. Thanks!
>
I think the problem first arose in 2011 when the patent on the arithmetic
coding algorithm expired and libjpeg-turbo was adopted by Fedora (and
maybe others), and Enblend 4.0 was the current release (since Dec 2009).
Enblend 4.1 was released in Dec 2012.

An error message relating to the problem was like this...
"loading failed: Error interpreting JPEG image file (Sorry, there are
legal restrictions on arithmetic coding)."

Hope that helps.

Cheers,
--
Regards,
Terry Duell

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.