I am surprised that an algorithm designed to compress a graphic image would be at all useful for compressing bytes of text.
One gigabyte is as large as any other gigabyte, yes, but the characteristics of that gigabyte may be very different. If they're predictable in some manner, you can tailor a compression algorithm to that gigabyte.
You can learn some about this by studying linear algebra.