More than that if you want the best results you need to preprocess.
PNG uses a standard compression algorithm but it can subtract rgb pixel values from the pixel above, to the left or some combination, which makes the numbers smaller and more predictable most of the time. If you had a column of numbers that were hourly temperature measurements you should do the same.
If it is like a csv file you are better off compressing a whole column together than compressing a row. if you keep the rows together it will usually compress faster if you sort it.
Almost any simple program which compresses the data a bit based on knowledge of the file will improve the results of a gzip/zstd/bzip2 kind of compressor run after it.