'How to mesh the transition from denser to coarser transfinite elements with Gmsh?

I am trying to mesh a 2D domain that would look like the front surface of the figure I attached. My problem is how to mesh the transition layer (the layer with the trapezoids) between the small and the big quads? I have looked into how to mesh with variable element sizes with transfinite interpolation in Gmsh (namely the progression and bump options) but I still can't figure out how to mesh this transition layer. Any help would be greatly appreciated!

The example image



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source