$value) { if (preg_match('/^updatedText_(\d+)$/', $key, $matches)) { $index = $matches[1]; $jsonData['textLayers'][$index]['updatedText'] = $value; } } // Create new filename with "-textonly-updated" suffix // If filename already ends with -textonly.json, replace with -textonly-updated.json if (strpos($filename, '-textonly.json') !== false) { $newFilename = str_replace('-textonly.json', '-textonly-updated.json', $filename); } else { // Otherwise, just add -updated before .json $newFilename = pathinfo($filename, PATHINFO_FILENAME) . '-textonly-updated.json'; } // Save the updated JSON $updatedJson = json_encode($jsonData, JSON_PRETTY_PRINT); header('Content-Type: application/json'); header('Content-Disposition: attachment; filename="' . $newFilename . '"'); echo $updatedJson; exit; } } ?> Photoshop Text Layer Editor

Photoshop Text Layer Editor

Instructions:

  1. Upload a JSON file exported from the ExtractTextWithBreaks.jsx script
  2. Edit the "Updated Text" field for any text layers you want to modify
  3. Click "Save Changes" to download the updated JSON file
  4. Use the updated JSON with the updateTextLayers.jsx script in Photoshop

Found text layers in the file .

$layer): ?>
Layer:
Path:

Original Text:

Updated Text:

No text layers found in the JSON file.

Upload another file