RAGE Photo Parser
Go to file
Syping c6566c8f17 WebAssembly CMake support and other changes
RagePhoto-Extract: removed unnecessary includes
Windows RagePhoto-Extract: included Windows resource file

RagePhotoA: include iostream to fix undefined std::

RagePhoto: seperate C and CXX exports to export only C functions with
Windows RagePhoto: changed Windows resource file language to 0x0

Doxyfile: change PROJECT_VERSION variable to ragephoto_VERSION variable
2021-11-16 06:20:20 +01:00
.github/workflows CI: Update ubuntu.yml and add windows.yml 2021-11-12 03:06:37 +01:00
cmake CMake: Seperate Unicode tests 2021-11-09 03:25:27 +01:00
doc WebAssembly CMake support and other changes 2021-11-16 06:20:20 +01:00
examples CMake: Fix incorrect number of arguments at INSTALL_RPATH 2021-11-12 22:21:38 +01:00
src WebAssembly CMake support and other changes 2021-11-16 06:20:20 +01:00
tests WinCvt: fixing MSVC build with including windows.h 2021-11-12 07:10:36 +01:00
.gitattributes C API and .gitattributes improvements 2021-11-13 04:41:01 +01:00
CMakeLists.txt WebAssembly CMake support and other changes 2021-11-16 06:20:20 +01:00
README.md README.md: update links and link/ref to C API 2021-11-13 04:53:06 +01:00



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/C++ API

Build libragephoto

git clone https://github.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);
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 C API
RagePhoto C++ API

How to Use ragephoto-extract

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