Hacker Newsnew | past | comments | ask | show | jobs | submitlogin



I built the image compression for imgfiber using CompressorJS as the base. It’s a reliable library by Feng Yuanchen (https://fengyuanchen.github.io/compressorjs/), originally designed for lossy compression. I wrapped and modified it to meet our specific needs, tweaking the code so the results differ from the default - you won’t get the same file size or optimization when using it out of the box. Full credit for the core library goes to the original author; my work was to modify it for our usecase. to solve our own personal pain point.


Using CompressorJS means lossy image compression. You really shouldn't be calling this "Instant, Lossless File Compression" on your page.

Also, because you're using CompressorJS's default settings, you should know that PNG files > 5 MB are converted to JPG (https://github.com/fengyuanchen/compressorjs?tab=readme-ov-f...). Your site, however, keeps the .png file name ending for the converted image, again falsely suggesting lossless compression.


> I wrapped and modified it to meet our specific needs, tweaking the code so the results differ from the default - you won’t get the same file size or optimization when using it out of the box.

I presume this is an oversight; changing CompressorJS's quality setting from its default of 0.8 to 0.75 results in the exact same output as ImgFiber.

Full settings dump:

  {
    "strict": true,
    "checkOrientation": true,
    "retainExif": false,
    "maxWidth": null,
    "maxHeight": null,
    "minWidth": 0,
    "minHeight": 0,
    "resize": "none",
    "quality": 0.75,
    "mimeType": "auto",
    "convertTypes": [
        "image/png"
    ],
    "convertSize": 5000000,
    "beforeDraw": null,
    "drew": null
}


the settings dump you dropped will not deliver on same outputs :)


Isn't everything a wrapper for something in the end? Weird comment ...


Is CompressorJS a wrapper?


I mean software product. Everything commodities something in the end imho


Yeah, but if you're trying to promote your AI generated React bloat wrapper in a "Show HN", you should at least be honest and describe how it's actually working instead of writing mindless, non-coherent, intentionally misleading ad blurbs without any actual information imho.


It's not a AI generated React bloat wrapper as you seem to think somehow.

We did not lie about actual working when fellow developers demanded answers. I love talking about what i have build. Maybe just nudge better? instead of hating?


Welcome to HN ;) Lots of nay-sayers that haven't build a thing ever. Keep at it and don't worry.


What is it that you think they did? They have large claims and can't answer a single technical question. They don't even seem to know the difference between lossless and lossy compression or a png and a jpeg.


But that's my point: you gotta learn to build products and the hate and criticism is sometimes really unbelievable. You're exposing yourself to the world. And in the end you pay for a service, no matter if they wrapped compressionjs if it adds value. And sometimes that value takes a bit of iteration. Instead of using positive reinforcement, the comments feel pretty hateful at times. HN is often not a supportive environment, but would be awesome if it would be, right?


Did you read through this thread? What you are saying is completely detached from what they are saying. They are claiming they made a new product/service and that it beats all sorts of competitors. They aren't claiming they are learning or doing something for the first time.

Then people say that they can't get any results from it and they can't answer basic questions. They even put jpg and jpeg as two different formats.

People are being exceptionally nice in this thread from someone who probably copy and pasted from code generation to try to get free advertisement and make a quick buck.

The comments aren't 'hateful' they are asking the most basic technical questions and pointing out that none of these claims are actually true.


Well said


But we're not at the end yet




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: