bin/magick.rb
def image_path(full_path)
  if full_path.index("/#{SPLIT_CHAR}/")
    image_path = full_path.split("/#{SPLIT_CHAR}/")

    if image_path.length >= 2
      image_path.last
    else
      false
    end
  else
    full_path
  end
end
# Extract just the image path from the full path.
Extract just the image path from the full path.
Extract just the image path from the full path .
def image_path(full_path)
  if full_path.index("/#{SPLIT_CHAR}/")
    image_path = full_path.split("/#{SPLIT_CHAR}/")
    if image_path.length >= 2
      image_path.last
    else
      false
    end
  else
    full_path
  end
end
def image_path ( full_path ) if full_path . index ( "/#{SPLIT_CHAR}/" ) image_path = full_path . split ( "/#{SPLIT_CHAR}/" ) if image_path . length >= 2 image_path . last else false end else full_path end end
Extract just the image path from the full path.
Extract just the image path from the full path .
full_path