Rocket.chat: Image has shrunk to nothing

Created on 23 Apr 2018  路  9Comments  路  Source: RocketChat/Rocket.Chat

Description:

I try to paste picture of 1300 width pixels. (and height of 25px)

Server Setup Information:

  • Version of Rocket.Chat Server: 0.63.3
  • Operating System: ubuntu 16.04.4
  • Deployment Method(snap/docker/tar/etc): docker
  • Number of Running Instances: 1
  • DB Replicaset Oplog: active
  • Node Version: 8.9.3
  • mongoDB Version: 3.2

Steps to Reproduce:

Take picture of 1300 width pixel (and height of 25px)
Or use my picture for testing:
image

Expected behavior:

Display picture in chat.

Actual behavior:

No picture and error in log.

Relevant logs:

Exception while invoking method 'sendFileMessage' Error: reducev: image has shrunk to nothing => awaited here: at Function.Promise.await (/app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:56:12) at Promise.asyncApply (/app/bundle/programs/server/packages/rocketchat_file-upload.js:1477:49) at /app/bundle/programs/server/npm/node_modules/meteor/promise/node_modules/meteor-promise/fiber_pool.js:43:40

bug

Most helpful comment

K岷縯 n峄慽 t脿i kho岷g google

All 9 comments

@rocket-cat label add "type: bug"

I can confirm this on 0.64.0-rc.1. I guess resizing images that have extreme ratios leads to one side of the image being zero when generating the preview.

Cheers
Thomas

K岷縯 n峄慽

-

-

K岷縯 n峄慽

Mobile

K岷縯 n峄慽 t脿i kho岷g google

I'd seen this on 0.63 but thought it was an isolated incident ion my box.

Same problem in 0.65.2.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mddvul22 picture mddvul22  路  3Comments

sta-szek picture sta-szek  路  3Comments

lunitic picture lunitic  路  3Comments

antn89 picture antn89  路  3Comments

ghost picture ghost  路  3Comments