FLTK logo

Re: [fltk.general] Re: JPEG issue

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Re: JPEG issue Albrecht Schlosser Nov 15, 2022  
 
On 11/12/22 10:31 ed.vi...@gmail.com wrote:
I just checked and I am using the homebrew JPEG library:

    /usr/local/opt/jpeg-turbo/lib/libjpeg.8.dylib (compatibility version 8.0.0, current version 8.2.2)

Hi Ed,

as written by others, we can't find an issue with your image file. I tested it with test/pixmap_browser on Linux (Intel) and macOS (M1: ARM) and it works fine.

I also tested the image with fluid so it is loaded from memory as in your case. This fluid file should create an executable that displays the image with a 10-pixel wide red border.

Please copy this tiny fluid file to your FLTK root directory:

# data file for the Fltk User Interface Designer (fluid)
version 1.0400
header_name {.h}
code_name {.cxx}
Function {make_window()} {open
} {
  Fl_Window {} {open
    xywh {45 422 574 157} type Double visible
  } {
    Fl_Box {} {
      image {meshlogo.jpg} xywh {0 0 574 157} box FLAT_BOX color 1
    }
  }
}

Function {} {open
} {
  code {Fl_Window *w = make_window();
w->show();} {selected
  }
}

Then test it using:
$ ./fluid/fluid meshlogo.fl
$ ./fltk-config --use-images --compile meshlogo.cxx
$ ./meshlogo

If this does not work with your old FLTK build and your JPEG library, then please use a fresh FLTK checkout and configure FLTK to use the bundled jpeg libraries, for instance:

$ make distclean
$ autoconf
$ ./configure  --enable-localjpeg --enable-localpng --enable-localzlib
$ make

Then execute test/pixmap_browser and try to load your image from disk. If this works we can conclude that the issue is not within FLTK.

You should also try the meshlogo.fl with this new build and report what you find out.

--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/6b517cfb-9a7f-40a9-673e-be9b938b9d77%40online.de.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.