RAGE Photo Parser
Go to file
Syping b5b96a841c fix setPhoto() photoSize not being updated 2021-10-20 09:24:48 +02:00
.ci add error function, README and CI 2021-08-26 00:22:11 +02:00
.github/workflows CI: Run sudo at cmake --install 2021-09-04 17:27:32 +02:00
doc improve docs, add setFormat and setBufferDefault 2021-09-16 03:07:11 +02:00
examples improve examples 2021-10-14 07:09:58 +02:00
src fix setPhoto() photoSize not being updated 2021-10-20 09:24:48 +02:00
tests iconv saving support 2021-10-20 08:49:35 +02:00
CMakeLists.txt add documentation and set functions 2021-09-14 19:35:46 +02:00
README.md improve docs, add setFormat and setBufferDefault 2021-09-16 03:07:11 +02:00

README.md

libragephoto

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

-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);
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();

RagePhoto API

How to Use ragephoto-extract

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