the strange about the jpeg picture

948 views
Skip to first unread message

平民四月份

unread,
Aug 5, 2012, 10:31:44 PM8/5/12
to golang-nuts, golang...@googlegroups.com
Hi all:
     sorry for my poor english.
     there is a jpeg picture, which was composed  by 4 other jpeg pictures with "image/jpeg". when i shared it to SNS(s).  the http://weibo.com is ok. but the http://t.qq.com can't recognised it with error: "图片上传过程中出错,请稍后再试(Upload  is failed, please retry it later.)".  i had shared it to t.qq.com  about 5 times. but it's failed with the same error  everytime.    the other picture, which not created by image/jpeg , the upload operation is suscessfuly, i had compared they all's binary data with ultra-edit. the header info is different. what's wrong?
--
 Face the sea, for the spring flowers blossoming




xx.jpg

Andrew Gerrand

unread,
Aug 5, 2012, 11:30:33 PM8/5/12
to 平民四月份, golang-nuts, golang...@googlegroups.com
It's pretty hard for us to say for sure. "Upload failed" is not a
useful error message.

Can you find any other programs that refuse to read files generated by
image/jpeg? (Preferably an open source program, so that we have some
better insight as to what might be the cause.)

Andrew

平民四月份

unread,
Aug 6, 2012, 1:08:25 AM8/6/12
to Andrew Gerrand, golang-nuts, golang...@googlegroups.com
hi adg:
     i'm sorry for can't find any useful info about this. and i can't find any other programs  refuse to read files generated by image/jpeg too. there is the other picture. which just open the xx.jpg(tha attachment) by http://www.52photo.com and save it.(maybe it changed the head info). it's can be recognisze by t.qq.com, i do not know whether it can help to solve this cause or not.
xx_sucess.jpg

平民四月份

unread,
Aug 6, 2012, 2:00:23 AM8/6/12
to Andrew Gerrand, golang-nuts, golang...@googlegroups.com
i had use  GraphicsMagick  to convert the picture to another picture with command:
         C:\Users\lewgun>gm convert D:/xx.jpg D:/xx2.jpg

the output info as follows with D:/xx2.jpg:
         gm convert: Invalid SOS parameters for sequential JPEG (D:/xx.jpg).

I had upload this xx2.jpg to t.qq.com, it is failed with the same error.

but i do the steps as follows: 

1. convert to png:
   C:\Users\lewgun>gm convert D:/xx.jpg D:/xx2.png
   gm convert: Invalid SOS parameters for sequential JPEG (D:/xx.jpg).

2. convert from png to jpeg
   C:\Users\lewgun>gm convert D:/xx2.png D:/xx3.jpg

3. upload
   it's successfuly


 gm convert: Invalid SOS parameters for sequential JPEG (D:/xx.jpg).

Michael Jones

unread,
Aug 6, 2012, 4:14:55 AM8/6/12
to 平民四月份, Andrew Gerrand, golang-nuts, golang...@googlegroups.com
Great debugging report. It seems that this error is popular across the
web in a variety of programs:

https://www.google.com/search?q=jpeg+sos+parameters&oq=jpeg+sos+parameters
--
Michael T. Jones | Chief Technology Advocate | m...@google.com | +1
650-335-5765

minux

unread,
Aug 6, 2012, 11:36:57 AM8/6/12
to golang...@googlegroups.com, golang-nuts

On Monday, August 6, 2012, 平民四月份 wrote:
 gm convert: Invalid SOS parameters for sequential JPEG 
Seems like a bug, please file an issue.

平民四月份

unread,
Aug 6, 2012, 9:19:10 PM8/6/12
to golang...@googlegroups.com, golang-nuts
finished with 3916

--
官网: http://golang-china.org/
IRC: irc.freenode.net #golang-china
@golangchina
Reply all
Reply to author
Forward
0 new messages