Re: gm convert bla.jpg bla.pdf multiplies SEVENFOLD the file's size !
Mehdi <[email protected]> Mon, 10 Dec 2018 16:45:15 +0100
| Newsgroups | gmane.comp.video.graphicsmagick.bugs |
|---|---|
| Message-ID | <CAB5O8Ow6vA1_HkdAL2n3BfSdi34VLPdjtEWA5w6tpF53mhi5vQ@mail.gmail.com> |
--===============2663446542285028728==
Content-Type: multipart/alternative; boundary="000000000000986bb5057cacda4b"
--000000000000986bb5057cacda4b
Content-Type: text/plain; charset="UTF-8"
>
>
> (gdb) info locals
> indexes = <optimized out>
> x = 4097
> q = 0x7fffb43aa004
> image = 0x8b8da0
> error_manager = <error reading variable error_manager (value of type
> `ErrorManager' requires 66224 bytes, which is more than max-value-size)>
> index = 248 '\370'
> y = 542
> jpeg_pixels = 0x8def50 '\370' <repeats 199 times>, <incomplete sequence
> \370>...
> scanline = {0x8def50 '\370' <repeats 199 times>, <incomplete sequence
> \370>...}
> value = <optimized out>
> i = <optimized out>
> jpeg_error = {error_exit = 0x5166f0 <JPEGErrorHandler>, emit_message =
> 0x5168d0 <JPEGDecodeMessageHandler>, output_message = 0x7ffff72a4ba0,
> format_message = 0x7ffff72a4a90, reset_error_mgr = 0x7ffff72a4a70,
> msg_code = 105, msg_parm = {i = {0, 63, 0, 0, 3, 1, 0, 3},
> s = "\000\000\000\000?", '\000' <repeats 11 times>,
> "\003\000\000\000\001\000\000\000\000\000\000\000\003", '\000' <repeats 50
> times>}, trace_level = 0,
> num_warnings = 0, jpeg_message_table = 0x7ffff74e6640
> <jpeg_std_message_table>, last_jpeg_message = 126, addon_message_table =
> 0x0, first_addon_message = 0,
> last_addon_message = 0}
> ---Type <return> to continue, or q <return> to quit---
> jpeg_progress = {progress_monitor = 0x516820 <JPEGDecodeProgressMonitor>,
> pass_counter = 542, pass_limit = 3456, completed_passes = 0, total_passes =
> 1}
> jpeg_info = {err = 0x7ffffffe8b00, mem = 0x85ab50, progress =
> 0x7ffffffe8ae0, client_data = 0x7ffffffea4d0, is_decompressor = 1,
> global_state = 205,
> src = 0x8da9f0, image_width = 4608, image_height = 3456, num_components
> = 1, jpeg_color_space = JCS_GRAYSCALE, out_color_space = JCS_GRAYSCALE,
> scale_num = 1,
> scale_denom = 1, output_gamma = 1, buffered_image = 0, raw_data_out = 0,
> dct_method = JDCT_ISLOW, do_fancy_upsampling = 1, do_block_smoothing = 1,
> quantize_colors = 0, dither_mode = JDITHER_FS, two_pass_quantize = 1,
> desired_number_of_colors = 256, enable_1pass_quant = 0,
> enable_external_quant = 0,
> enable_2pass_quant = 0, output_width = 4608, output_height = 3456,
> out_color_components = 1, output_components = 1, rec_outbuf_height = 1,
> actual_number_of_colors = 0, colormap = 0x0, output_scanline = 543,
> input_scan_number = 1, input_iMCU_row = 68, output_scan_number = 1,
> output_iMCU_row = 68,
> coef_bits = 0x0, quant_tbl_ptrs = {0x8d0c50, 0x0, 0x0, 0x0},
> dc_huff_tbl_ptrs = {0x8d0ce0, 0x8d0f20, 0x0, 0x0}, ac_huff_tbl_ptrs =
> {0x8d0e00, 0x8d1040, 0x0,
> 0x0}, data_precision = 8, comp_info = 0x8dca40, progressive_mode = 0,
> arith_code = 0, arith_dc_L = '\000' <repeats 15 times>,
> arith_dc_U = '\001' <repeats 16 times>, arith_ac_K = '\005' <repeats 16
> times>, restart_interval = 0, saw_JFIF_marker = 1, JFIF_major_version = 1
> '\001',
> JFIF_minor_version = 1 '\001', density_unit = 1 '\001', X_density = 300,
> Y_density = 300, saw_Adobe_marker = 0, Adobe_transform = 0 '\000',
> CCIR601_sampling = 0, marker_list = 0x0, max_h_samp_factor = 1,
> max_v_samp_factor = 1, min_DCT_scaled_size = 8, total_iMCU_rows = 432,
> sample_range_limit = 0x8dcba0 "", comps_in_scan = 1, cur_comp_info =
> {0x8dca40, 0x0, 0x0, 0x0}, MCUs_per_row = 576, MCU_rows_in_scan = 432,
> blocks_in_MCU = 1,
> MCU_membership = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, Ss = 0, Se = 63, Ah =
> 0, Al = 0, unread_marker = 0, master = 0x8d0bc0, main = 0x8dd5f0, coef =
> 0x8dd480,
> post = 0x8dd160, inputctl = 0x8d0b90, marker = 0x8d0a80, entropy =
> 0x8dd310, idct = 0x8dd190, upsample = 0x8dd060, cconvert = 0x8dd020,
> cquantize = 0x0}
> p = 0x8dff51 '\370' <repeats 199 times>, <incomplete sequence \370>...
> ---Type <return> to continue, or q <return> to quit---
> status = 1
> number_pixels = <optimized out>
> __PRETTY_FUNCTION__ = "ReadJPEGImage"
> __func__ = "ReadJPEGImage"
I suspect the code responsible of this is also in Imagemagick. Eventhough
the message isn't the same and doesn't mention bus error, it would too much
of a coincidence. I can't help for IM, since, it won't install again,
strangely enough the binaries are nowhere to be found even after apt
install imagemagick.
--000000000000986bb5057cacda4b
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px =
0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-l=
eft-style:solid;padding-left:1ex"><br>(gdb) info locals<br>indexes =3D <=
optimized out><br>x =3D 4097<br>q =3D 0x7fffb43aa004<br>image =3D 0x8b8d=
a0<br>error_manager =3D <error reading variable error_manager (value of =
type `ErrorManager' requires 66224 bytes, which is more than max-value-=
size)><br>index =3D 248 '\370'<br>y =3D 542<br>jpeg_pixels =3D 0=
x8def50 '\370' <repeats 199 times>, <incomplete sequence \=
370>...<br>scanline =3D {0x8def50 '\370' <repeats 199 times&g=
t;, <incomplete sequence \370>...}<br>value =3D <optimized out>=
<br>i =3D <optimized out><br>jpeg_error =3D {error_exit =3D 0x5166f0 =
<JPEGErrorHandler>, emit_message =3D 0x5168d0 <JPEGDecodeMessageHa=
ndler>, output_message =3D 0x7ffff72a4ba0,=C2=A0<br>=C2=A0 format_messag=
e =3D 0x7ffff72a4a90, reset_error_mgr =3D 0x7ffff72a4a70, msg_code =3D 105,=
msg_parm =3D {i =3D {0, 63, 0, 0, 3, 1, 0, 3},=C2=A0<br>=C2=A0 =C2=A0 s =
=3D "\000\000\000\000?", '\000' <repeats 11 times>,=
"\003\000\000\000\001\000\000\000\000\000\000\000\003", '\00=
0' <repeats 50 times>}, trace_level =3D 0,=C2=A0<br>=C2=A0 num_wa=
rnings =3D 0, jpeg_message_table =3D 0x7ffff74e6640 <jpeg_std_message_ta=
ble>, last_jpeg_message =3D 126, addon_message_table =3D 0x0, first_addo=
n_message =3D 0,=C2=A0<br>=C2=A0 last_addon_message =3D 0}<br>---Type <r=
eturn> to continue, or q <return> to quit---<br>jpeg_progress =3D =
{progress_monitor =3D 0x516820 <JPEGDecodeProgressMonitor>, pass_coun=
ter =3D 542, pass_limit =3D 3456, completed_passes =3D 0, total_passes =3D =
1}<br>jpeg_info =3D {err =3D 0x7ffffffe8b00, mem =3D 0x85ab50, progress =3D=
0x7ffffffe8ae0, client_data =3D 0x7ffffffea4d0, is_decompressor =3D 1, glo=
bal_state =3D 205,=C2=A0<br>=C2=A0 src =3D 0x8da9f0, image_width =3D 4608, =
image_height =3D 3456, num_components =3D 1, jpeg_color_space =3D JCS_GRAYS=
CALE, out_color_space =3D JCS_GRAYSCALE, scale_num =3D 1,=C2=A0<br>=C2=A0 s=
cale_denom =3D 1, output_gamma =3D 1, buffered_image =3D 0, raw_data_out =
=3D 0, dct_method =3D JDCT_ISLOW, do_fancy_upsampling =3D 1, do_block_smoot=
hing =3D 1,=C2=A0<br>=C2=A0 quantize_colors =3D 0, dither_mode =3D JDITHER_=
FS, two_pass_quantize =3D 1, desired_number_of_colors =3D 256, enable_1pass=
_quant =3D 0, enable_external_quant =3D 0,=C2=A0<br>=C2=A0 enable_2pass_qua=
nt =3D 0, output_width =3D 4608, output_height =3D 3456, out_color_componen=
ts =3D 1, output_components =3D 1, rec_outbuf_height =3D 1,=C2=A0<br>=C2=A0=
actual_number_of_colors =3D 0, colormap =3D 0x0, output_scanline =3D 543, =
input_scan_number =3D 1, input_iMCU_row =3D 68, output_scan_number =3D 1, o=
utput_iMCU_row =3D 68,=C2=A0<br>=C2=A0 coef_bits =3D 0x0, quant_tbl_ptrs =
=3D {0x8d0c50, 0x0, 0x0, 0x0}, dc_huff_tbl_ptrs =3D {0x8d0ce0, 0x8d0f20, 0x=
0, 0x0}, ac_huff_tbl_ptrs =3D {0x8d0e00, 0x8d1040, 0x0,=C2=A0<br>=C2=A0 =C2=
=A0 0x0}, data_precision =3D 8, comp_info =3D 0x8dca40, progressive_mode =
=3D 0, arith_code =3D 0, arith_dc_L =3D '\000' <repeats 15 times=
>,=C2=A0<br>=C2=A0 arith_dc_U =3D '\001' <repeats 16 times>=
;, arith_ac_K =3D '\005' <repeats 16 times>, restart_interval=
=3D 0, saw_JFIF_marker =3D 1, JFIF_major_version =3D 1 '\001',=C2=
=A0<br>=C2=A0 JFIF_minor_version =3D 1 '\001', density_unit =3D 1 &=
#39;\001', X_density =3D 300, Y_density =3D 300, saw_Adobe_marker =3D 0=
, Adobe_transform =3D 0 '\000',=C2=A0<br>=C2=A0 CCIR601_sampling =
=3D 0, marker_list =3D 0x0, max_h_samp_factor =3D 1, max_v_samp_factor =3D =
1, min_DCT_scaled_size =3D 8, total_iMCU_rows =3D 432,=C2=A0<br>=C2=A0 samp=
le_range_limit =3D 0x8dcba0 "", comps_in_scan =3D 1, cur_comp_inf=
o =3D {0x8dca40, 0x0, 0x0, 0x0}, MCUs_per_row =3D 576, MCU_rows_in_scan =3D=
432, blocks_in_MCU =3D 1,=C2=A0<br>=C2=A0 MCU_membership =3D {0, 0, 0, 0, =
0, 0, 0, 0, 0, 0}, Ss =3D 0, Se =3D 63, Ah =3D 0, Al =3D 0, unread_marker =
=3D 0, master =3D 0x8d0bc0, main =3D 0x8dd5f0, coef =3D 0x8dd480,=C2=A0<br>=
=C2=A0 post =3D 0x8dd160, inputctl =3D 0x8d0b90, marker =3D 0x8d0a80, entro=
py =3D 0x8dd310, idct =3D 0x8dd190, upsample =3D 0x8dd060, cconvert =3D 0x8=
dd020, cquantize =3D 0x0}<br>p =3D 0x8dff51 '\370' <repeats 199 =
times>, <incomplete sequence \370>...<br>---Type <return> to=
continue, or q <return> to quit---<br>status =3D 1<br>number_pixels =
=3D <optimized out><br>__PRETTY_FUNCTION__ =3D "ReadJPEGImage&qu=
ot;<br>__func__ =3D "ReadJPEGImage"</blockquote><div><br></div><d=
iv>I suspect the code responsible of this is also in Imagemagick. Eventhoug=
h the message isn't the same and doesn't mention bus error, it woul=
d too much of a coincidence. I can't help for IM, since, it won't i=
nstall again, strangely enough the binaries are nowhere to be found even af=
ter apt install imagemagick.</div><div><br></div></div>
--000000000000986bb5057cacda4b--
--===============2663446542285028728==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--===============2663446542285028728==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Graphicsmagick-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/graphicsmagick-bugs
--===============2663446542285028728==--