RAGE Photo Parser
Go to file
Syping a396d014f7 C++ API: add loadFile and saveFile 2021-11-02 10:16:56 +01:00
.github/workflows CI: move apt install to ubuntu.yml 2021-11-01 19:46:07 +01:00
doc added a Simple C API 2021-10-29 11:52:59 +02:00
examples improve examples 2021-10-30 15:31:29 +02:00
src C++ API: add loadFile and saveFile 2021-11-02 10:16:56 +01:00
tests efficiency improvements and CMake WIN32 flags 2021-10-24 05:03:14 +02:00
CMakeLists.txt added a Simple C API 2021-10-29 11:52:59 +02:00
README.md add custom load functions, move private data to struct 2021-10-28 03:28:36 +02:00

README.md

libragephoto

Open Source RAGE Photo Parser for GTA V and RDR 2

  • Read/Write 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

-DWITH_DOCUMENTATION=ON -DWITH_EXTRACT=OFF -DWITH_GTK_EXAMPLE=ON -DWITH_QT_EXAMPLE=ON -DBUILD_SHARED=OFF

How to Use libragephoto

RagePhoto ragePhoto;
bool loaded = ragePhoto.load(data, size);
std::string photo = ragePhoto.photo();
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();
uint32_t format = ragePhoto.format(); // RagePhoto::GTA5 or RagePhoto::RDR2

RagePhoto API

How to Use ragephoto-extract

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