RAGE Photo Parser
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Syping 3479a5597c CI: Run sudo at cmake --install 5 months ago
.ci add error function, README and CI 5 months ago
.github/workflows CI: Run sudo at cmake --install 5 months ago
examples CMake improvements, photoFormat improvement 5 months ago
src CMake improvements, photoFormat improvement 5 months ago
tests memory fixes, GTK example added 5 months ago
CMakeLists.txt Fix CMake top-level detection, install build with CI 5 months ago
README.md add format() function 5 months ago



Open Source RAGE Photo Parser for GTA V and RDR 2

  • Read RAGE Photos error free and correct
  • Support for metadata stored in RAGE Photos
  • Export RAGE Photos to jpeg with ragephoto-extract
  • High Efficient and Simple C++ API

Build libragephoto

git clone https://gitlab.com/Syping/libragephoto && cd libragephoto
mkdir -p build && cd build
cmake ../
make -j $(nproc --all)
sudo make install
Optional CMake flags


How to Use libragephoto

RagePhoto ragePhoto;
bool loaded = ragePhoto.load(data, size);
const char* photoData = ragePhoto.photoData();
uint32_t photoSize = ragePhoto.photoSize();
std::string json = ragePhoto.json();
std::string title = ragePhoto.title();
RagePhoto::Error error = ragePhoto.error();
RagePhoto::PhotoFormat format = ragePhoto.format();

How to Use ragephoto-extract

ragephoto-extract PGTA5123456789 photo.jpg
ragephoto-extract PRDR3123456789 photo.jpg