all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eric Moyer <eric_moyer@yahoo.com>
To: bug-gnu-emacs@gnu.org
Subject: bug#705: Viewing pgm (raw) does not work when multiple bytes per sample in Windows XP
Date: Tue, 12 Aug 2008 22:17:01 -0700 (PDT)	[thread overview]
Message-ID: <609357.50534.qm@web56304.mail.re3.yahoo.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 5318 bytes --]

From:  <eric_moyer@yahoo.com>
To: bug-gnu-emacs@gnu.org
Subject: Viewing pgm (raw) does not work when multiple bytes per sample
--text follows this line--

Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

When I load a raw mode pgm file (format P5) in image mode, it does not
display correctly if its maxval is 65535 (I haven't tried maxval >
255 but less that 65535, but I suspect they would have the same
problem).  The image displayed is the right dimensions but only the
top quarter of the actual image is shown and it is stretched to the
same dimensions by the insertion of rows and columns of black pixels
every othe row and column.  The image displays correctly when I
convert the pgm file to the plain text format (format P3) using the
same bit depth.

I have attached a gzipped copy of file which causes the problem in raw mode (resultSegMul.pgm.gz).  I have also attached the same file in plain mode (resultSegMul.plain.pgm.gz), which displays correctly.  I have also attached two files showing screen-shots of the incorrect behavior and the expected behavior.

If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
c:/emacs-22.1/etc/DEBUG for instructions.


In GNU Emacs 22.1.1 (i386-mingw-nt5.1.2600)
 of 2007-06-02 on RELEASE
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --cflags -Ic:/gnuwin32/include'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ENU
  locale-coding-system: cp1252
  default-enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
  encoded-kbd-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t

Recent input:
[ 0 ] ; C-x C-s <left> <left> <backspace> 2 <end> C-x 
C-s <left> <left> <backspace> 0 <end> C-x C-s <down-mouse-1> 
<mouse-1> <down-mouse-1> <mouse-1> <help-echo> 2 5 
6 * <end> C-x C-s <down-mouse-1> <mouse-1> <down-mouse-1> 
<mouse-1> <left> <backspace> <backspace> <backspace> 
1 C-x C-s <up> <up> <down> <down> <right> <down> <left> 
<left> <left> <left> <left> <left> <left> <left> <left> 
<left> <left> <left> <left> <left> <left> <left> <left> 
<left> <left> <left> <left> <left> <left> <left> <backspace> 
2 5 6 C-x C-s <end> <left> + <left> <left> <left> <left> 
<left> <left> <left> <left> <left> <left> <left> <left> 
<left> <left> <left> <left> <left> <left> <end> <left> 
1 6 * i n I m a g e [ y ] [ x ] [ 1 <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> <backspace> <backspace> <backspace> 
<backspace> <backspace> C-x C-s <left> <left> <left> 
<left> <left> <left> <left> <left> <left> <left> <left> 
<left> <left> <left> <left> <left> <backspace> <backspace> 
<backspace> <backspace> C-x C-s <down-mouse-1> <mouse-1> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<up> <left> <left> <left> <left> <left> <left> <left> 
<left> <left> <left> <left> <tab> <up> <up> <up> <up> 
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> 
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <up> 
<up> <up> <up> <up> <up> <up> <up> <up> <up> <up> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <menu-bar> <help-menu> <about> 
<help-echo> <wheel-down> <wheel-up> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <menu-bar> 
<help-menu> <report-emacs-bug>

Recent messages:
Wrote c:/cygwin/home/Eric/Berk-Segmentation/SegmentationApp/Rutgers Segmentation/Code/ppmToSegPPM.cc
(No files need saving)
Auto-saving...done
Wrote c:/cygwin/home/Eric/Berk-Segmentation/SegmentationApp/Rutgers Segmentation/Code/ppmToSegPPM.cc
(No files need saving)
Mark set [2 times]
Wrote c:/cygwin/home/Eric/Berk-Segmentation/SegmentationApp/Rutgers Segmentation/Code/ppmToSegPPM.cc
(No files need saving)
Wrote c:/cygwin/home/Eric/Berk-Segmentation/SegmentationApp/Rutgers Segmentation/Code/ppmToSegPPM.cc [10 times]
Loading emacsbug...done




      

[-- Attachment #2: resultSegMul.pgm.gz --]
[-- Type: application/gzip, Size: 12105 bytes --]

[-- Attachment #3: resultSegMul.plain.pgm.gz --]
[-- Type: application/gzip, Size: 19471 bytes --]

[-- Attachment #4: screen-shot_correct-display.png --]
[-- Type: image/png, Size: 36740 bytes --]

[-- Attachment #5: screen-shot_incorrect-display.png --]
[-- Type: image/png, Size: 23471 bytes --]

             reply	other threads:[~2008-08-13  5:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <48A3843A.3060704@f2s.com>
2008-08-13  5:17 ` Eric Moyer [this message]
2008-08-14  1:10   ` bug#705: marked as done (Viewing pgm (raw) does not work when multiple bytes per sample in Windows XP) Emacs bug Tracking System

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=609357.50534.qm@web56304.mail.re3.yahoo.com \
    --to=eric_moyer@yahoo.com \
    --cc=705@emacsbugs.donarmstrong.com \
    --cc=bug-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.