Re: JPG image size



On May 2, 6:27 am, rrr7...@xxxxxxxxx wrote:
On May 1, 7:23 pm, "Wade Ward" <inva...@xxxxxxxxxxx> wrote:



<gary.l.sc...@xxxxxxxx> wrote in message

news:1178046454.468355.115750@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

On May 1, 9:29 am, rrr7...@xxxxxxxxx wrote:
This Salford Fortran95 (3-4 years old version) program

use clrwin
integer*4 hinitsize, vinitsize, nb_colours, ier
character*128 File

file='init.jpg'
call get_dib_size@(File, hinitsize, vinitsize, nb_colours, ier)
print*,' FileToOpen, hinitsize,vinitsize,nb_colours=',File(1:40),&
&hinitsize,vinitsize,nb_colours,ier
end

works fine with JPG and BMP files of smaller size but crashes when I
try to load 4000x2500 pixel image from 10 megapixel camera. Do you
experience the same behavior?
Thanks in advance

Just a guess, but older versions may have been designed only to handle
8-bit images max. GINO had that limitation back when 24/32-bit images
were fairly rare.

Are the files coming off your camera jpegs? I usually have to render an
image to make it .jpg

Furthermore, the files are *huge* and are going to trip your error clause
coming off the camera without rendering.
--
WW

Camera spec claims images are in RAW and JPEG (EXIF 2.2) formats. Are
they 8 or more bits per color - no info about. Based on 20 MB per 10
megapixel RAW image it's 5.33 bytes per color which is kind of
strange for new crop of digital cameras. Looks like this RAW is
losslessly compressed

BUT YOU BOTH ARE RIGHT! After passing through Photoshop or any other
software and saving same file in the same JPEG format or huge size
BMP, the code reads these new files, works fine and does not crash up
to 35 megapixels

So thanks

sorry, 5.33 *bits* per R,G or B color

.



Relevant Pages

  • Re: JPG image size
    ... integer*4 hinitsize, vinitsize, nb_colours, ier ... works fine with JPG and BMP files of smaller size but crashes when I ...
    (comp.lang.fortran)
  • Re: JPG image size
    ... integer*4 hinitsize, vinitsize, nb_colours, ier ... 8-bit images max. GINO had that limitation back when 24/32-bit images ...
    (comp.lang.fortran)
  • Re: JPG image size
    ... use clrwin ... integer*4 hinitsize, vinitsize, nb_colours, ier ...
    (comp.lang.fortran)
  • JPG image size
    ... use clrwin ... integer*4 hinitsize, vinitsize, nb_colours, ier ...
    (comp.lang.fortran)
  • Re: JPG image size
    ... integer*4 hinitsize, vinitsize, nb_colours, ier ... try to load 4000x2500 pixel image from 10 megapixel camera. ...
    (comp.lang.fortran)