SShortSingh.
Back to feed

Photo edit can flatten shirt folds into pure white; check a highlight before exporting

0
·4 views

An editing guide warns that brightening a scanned portrait can merge the collar and fold of a white shirt into one flat shape, which only becomes visible at full size. The author recommends keeping the original scan and using GIMP's histogram and Color Picker to compare two nearby tones in the fabric. Raising the white point via Levels can push both sides to pure white and erase the fold, so the advice is to undo any adjustment that does this. The article also suggests checking each colour channel separately and includes a short Python/Pillow script that demonstrates how different white points change the tones. The author notes that pure white is normal in some areas, so the concern is specifically losing detail that was present in the source.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Python tutorial shows how to scrape German marketplaces Kleinanzeigen, OBI and reichelt via one API

A developer guide explains how to collect listings and prices from German e-commerce sites such as Kleinanzeigen, OBI and reichelt using a single realtime web data API instead of building a separate scraper for each site. The tutorial walks through setting up Python with the requests library and an API key, then shows how to search Kleinanzeigen ads by keyword, location, radius and price range. It also covers tracking product prices at OBI and reichelt and logging them to a CSV file, with the aim of building a simple price-drop alert. The author notes that the API returns seller types but not seller names, and that reichelt prices include VAT.

0
ProgrammingDEV Community ·

Claude's 5-minute prompt cache expiry can drive up agent costs during idle pauses

A vendor analysis of 30 days of coding-agent traffic claims that 23.1% of Claude spending went toward rebuilding prompt caches that lapsed while developers were away. Pauses of 5 to 10 minutes alone accounted for 8.0% of the bill, exceeding the share from breaks longer than an hour, due to Claude's default 5-minute cache lifetime. Anthropic's documented pricing explains the effect: a cache rewrite costs far more than a read, so a single pause can multiply the cost of one turn many times over. The author notes the data comes from one vendor and could not be independently verified, though the pricing mechanics match Anthropic's documentation. Suggested mitigations include measuring pause-related cache misses in usage data, adjusting the cache TTL setting by session type, and pre-warming caches for custom harnesses.

0
ProgrammingDEV Community ·

Developer Releases AegisLLM, Open-Source Python Proxy for LLM Security and Cost Control

Aman Kumar built AegisLLM, an MIT-licensed, self-hosted proxy written in Python, to address data leakage, prompt injection, and unbounded spending in production LLM applications. The tool is OpenAI-compatible, so teams can adopt it by changing a single base URL in their existing SDK code. Each request passes through a per-tenant budget gate, a prompt-injection firewall with deterministic rules, and a PII and secret redactor before reaching the upstream provider. Spending is tracked in a thread-safe SQLite ledger, and requests exceeding a tenant's budget receive an HTTP 429 response. The author chose a self-hosted design because routing unredacted sensitive prompts through a third-party gateway would undermine the security goals of many teams.

0
ProgrammingDEV Community ·

Developer Builds Cloud-Native Observability Platform for Microservices on Kubernetes

A platform engineering learner documented a capstone project that constructed a cloud-native observability platform for a microservices application. The system runs three FastAPI-based services (API Gateway, Order Service, and Payment Service) deployed on Kubernetes via Minikube. The platform integrates monitoring, centralized logging, distributed tracing, alerting, CI/CD pipelines, and image security scanning using tools such as Prometheus, Grafana, Loki, Tempo, and Trivy. The author's aim was to address operational challenges like slow responses, failing requests, and vulnerable container images, rather than focusing solely on deployment.