def layers
      layers_count = identify.lines.count
      layers_count.times.map do |idx|
        MiniMagick::Image.new("#{path}[#{idx}]")
      end
    end
def layers
      layers_count = identify.lines.count
      layers_count.times.map do |idx|
        MiniMagick::Image.new("#{path}[#{idx}]")
      end
    end
Returns layers of the image. For example, JPEGs are 1-layered, but
 formats like PSDs, GIFs and PDFs can have multiple layers/frames/pages.

 @example
   image = MiniMagick::Image.new("document.pdf")
   image.pages.each_with_index do |page, idx|
     page.write("page#{idx}.pdf")
   end
 @return [Array<MiniMagick::Image>]