question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

crashes if image is too small

See original GitHub issue
events.js:160
      throw er; // Unhandled 'error' event
      ^
Error: File `X_logo.jpg`: Image enlargement is detected
  real width: 153px, required width: 200px

(sharp:3559): GLib-CRITICAL **: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(sharp:3559): GLib-CRITICAL **: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(sharp:3559): GLib-CRITICAL **: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(sharp:3559): GLib-CRITICAL **: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(sharp:3559): GLib-CRITICAL **: g_hash_table_lookup: assertion 'hash_table != NULL' failed

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
7iomkacommented, May 13, 2017

Yes! That it works! My config:

withoutEnlargement: true,
skipOnEnlargement: false, // that option copy original file with/without renaming
errorOnEnlargement: false
2reactions
mahnunchikcommented, May 13, 2017

Hi @7iomka @tehtrav @andrewplummer @mattstratton @jqln-0

Are you using the global option errorOnEnlargement?

gulp.task('default', function () {
  return gulp.src('src/*.png')
    .pipe(responsive(config, {
      errorOnEnlargement: false
    }))
    .pipe(gulp.dest('dist'));
});
Read more comments on GitHub >

github_iconTop Results From Across the Web

ANdroid: activity crashes even after reducing the image size
After u get images and convert to bitmap after apply this code see in link.. · I tried both ways. · I get...
Read more >
P: Crashes in OpenCL when changing image size (windows)
Photoshop CC 23.1. 1 crashes when resizing any size image in Windows 11. This is a crippling problem. Please help.
Read more >
OpenCV on Android crash if resolution of image for laplace is ...
Now, my problem is that it crashs, if the resolution of the image is too small. In the sample code the transformed image...
Read more >
Application crashes when downloading large images (more ...
Issue Description. downloading these images crashes the app with a memory issue. I've tried setting maxMemoryCost=1 but no success.
Read more >
Excel 2016 Not Responding and crashes when trying to resize ...
Please note that resizing the same AND/OR other images on a new xlsx file, seems to be working so far. Not sure if...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found