Files
SnapOtter/apps/docs/nl/tools/image/rotate.md
T
SnapOtterandGitHub f858c4cea0 feat: clearer, disambiguated tool names across all surfaces (#520)
Renames 18 ambiguous or hard-to-search tool names so image tools self-qualify like the other modalities ("Compress" becomes "Compress Image"), and cleans up a few awkward names. Propagated across search (constants.ts), display (en.ts + 20 locales), the OpenAPI base spec + 20 locale specs, and the docs tool-page headings in 21 languages. Removes the duplicate "Normalize Audio" summary shared by the video and audio endpoints. Tool ids and routes are unchanged, so no API paths or bookmarks break.
2026-07-15 21:55:51 +08:00

2.3 KiB

description, i18n_source_hash, i18n_provenance, i18n_output_hash
description i18n_source_hash i18n_provenance i18n_output_hash
Draai afbeeldingen onder elke hoek en spiegel ze horizontaal of verticaal. c4ed5f7e270b human 5fd343c155c7

Afbeelding draaien & spiegelen

Draai afbeeldingen onder een willekeurige hoek en/of spiegel ze horizontaal of verticaal. Draai- en spiegelbewerkingen kunnen in één verzoek worden gecombineerd.

API Endpoint

POST /api/v1/tools/image/rotate

Accepteert multipart form data met een afbeeldingsbestand en een JSON settings-veld.

Parameters

Parameter Type Vereist Standaard Beschrijving
angle number Nee 0 Draaihoek in graden (met de klok mee). Accepteert elke numerieke waarde.
horizontal boolean Nee false De afbeelding horizontaal spiegelen
vertical boolean Nee false De afbeelding verticaal spiegelen

Example Request

90 graden met de klok mee draaien:

curl -X POST http://localhost:1349/api/v1/tools/image/rotate \
  -H "Authorization: Bearer si_your-api-key" \
  -F "file=@photo.jpg" \
  -F 'settings={"angle": 90}'

Horizontaal spiegelen:

curl -X POST http://localhost:1349/api/v1/tools/image/rotate \
  -H "Authorization: Bearer si_your-api-key" \
  -F "file=@photo.jpg" \
  -F 'settings={"horizontal": true}'

Draaien en spiegelen samen:

curl -X POST http://localhost:1349/api/v1/tools/image/rotate \
  -H "Authorization: Bearer si_your-api-key" \
  -F "file=@photo.jpg" \
  -F 'settings={"angle": 45, "vertical": true}'

Example Response

{
  "jobId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "downloadUrl": "/api/v1/download/a1b2c3d4-e5f6-7890-abcd-ef1234567890/photo.jpg",
  "originalSize": 2450000,
  "processedSize": 2480000
}

Notes

  • De draaiing wordt eerst toegepast, daarna de spiegelbewerkingen.
  • Draaiingen die geen veelvoud van 90 graden zijn (bijv. 45 graden) vergroten het canvas om de gedraaide afbeelding te laten passen, met een transparante of zwarte vulling afhankelijk van het uitvoerformaat.
  • Veelgebruikte waarden: 90, 180, 270 voor kwartslagdraaiingen.
  • EXIF-oriëntatie wordt automatisch toegepast voordat er verwerkt wordt, dus de draaiing is relatief ten opzichte van de visuele oriëntatie.