Giter Site home page Giter Site logo

Should consider IMCU size about cropgui HOT 3 CLOSED

jepler avatar jepler commented on May 27, 2024
Should consider IMCU size

from cropgui.

Comments (3)

za3k avatar za3k commented on May 27, 2024

en.wikipedia.org/wiki/JPEG. It says "After subsampling, each channel must be split into 8×8 blocks. Depending on chroma subsampling, this yields (Minimum Coded Unit) MCU blocks of size 8×8 (4:4:4 – no subsampling), 16×8 (4:2:2), or most commonly 16×16 (4:2:0)." (via http://www.imagemagick.org/discourse-server/viewtopic.php?t=23162)

I'm having a bit of a time figuring out whether "iMCU" and "MCU" are different, but I can't get ahold of a copy of the JPEG standard, which would make this a lot easier.

Here's how you check that in imagemagick: http://www.imagemagick.org/discourse-server/viewtopic.php?t=17145
I don't know how with your libraries.

from cropgui.

xiota avatar xiota commented on May 27, 2024

Is there any real need for this? jpegtran already considers iMCU when it does the actual cropping. Perhaps this issue can be closed?

from cropgui.

onno74 avatar onno74 commented on May 27, 2024

True, jpegtran considers iMCU. However, when iMCU size is 16, this can give a result that differs by 8 pixels from what I see in cropgui.
When I want to cut out an image with sharp borders (such as a scan of a photograph, where the scanned region is a little larger than the photograph) 8 pixels of the border might remain in the image. The result is very ugly.
Also, when cropping photos of text on signs, small differences between preview in cropgui and final result by jpegtran can be annoying.

from cropgui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.