=== Framecard Studio ===
Contributors: philipmessi
Tags: photo card, social media, image generator, frame, bangla
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.3.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Photo card maker with frames, live preview and PNG download. Add it to any page with the shortcode [framecard_studio].

== Description ==

Framecard Studio adds a browser-based card maker to any page using a shortcode. Editors and visitors pick a frame, add a photo, type a title and two subtitles, drag everything into place and download a ready-to-share PNG.

**Features**

* Live canvas preview (1200 x 1200 px output)
* Selectable overlay frames (three generic frames included)
* Upload your own frame from your device or the Media Library, right in the generator
* Photo upload, zoom slider, mouse-wheel zoom and drag-to-position
* Blurred photo background that fills the whole card
* Title and two subtitles with automatic wrapping, size, colour, bold and drag-to-position controls
* Font choice for the title and each subtitle: sans-serif (Noto Sans Bengali, Inter, Montserrat, Jost, Nunito Sans), serif (Playfair Display, Lora, Noto Serif, Noto Serif Bengali) and system fonts, all with Bangla support
* Upload your own TTF/OTF/WOFF font
* Optional bottom sticker/banner, with size control and your own image
* Works on desktop and touch devices
* Everything is processed in the visitor's browser: no photos are uploaded or stored on your server

**Usage**

Add this shortcode to any page or post (shortcode: `[framecard_studio]`):

`[framecard_studio]`

**Adding your own frames**

Create the folder `wp-content/uploads/framecard-studio/frames/` and upload square PNG files (for example 1200 x 1200 px) with a transparent area where the photo should show. They appear in the frame list automatically and are kept when the plugin is updated. Developers can also use the `fcstudio_frames` filter.

**Media Library**

Users who are logged in and allowed to upload files also see a "Choose from Media Library" button. Other visitors use the normal file upload.

== Installation ==

1. Upload the `framecard-studio` folder to `/wp-content/plugins/`, or install the plugin from the Plugins screen.
2. Activate the plugin.
3. Add the shortcode `[framecard_studio]` to a page.

== Frequently Asked Questions ==

= Are photos uploaded to my server? =

No. Photos, fonts and stickers chosen from a visitor's device stay in their browser. Only images picked from your own Media Library are fetched from your site.

= The download fails for an image from the Media Library. =

If your images are served from another domain (for example a CDN) without CORS headers, browsers block exporting the canvas. Serve images from the same domain, enable CORS headers on the CDN, or upload the image from your device.

= Can I use my own logo and frames? =

Yes. Use "Upload your own frame" in the generator for a one-off frame, or see "Adding your own frames" above and use the sticker upload for a logo or banner.

= Does it need an external service? =

No. All scripts and fonts are bundled with the plugin and no external requests are made.

== Screenshots ==
screenshot-1.png
1. The card generator with frame list, controls and live preview.

== Third-party resources ==

All bundled fonts are licensed under the SIL Open Font License 1.1. Full licence texts are in `assets/fonts/licenses/` and `assets/fonts/OFL.txt`.

* Noto Sans Bengali, Noto Serif Bengali, Noto Serif - The Noto Project Authors - https://github.com/notofonts
* Inter - The Inter Project Authors - https://github.com/rsms/inter
* Montserrat - The Montserrat Project Authors - https://github.com/JulietaUla/Montserrat
* Jost - The Jost Project Authors - https://github.com/indestructible-type
* Nunito Sans - The Nunito Sans Project Authors - https://github.com/Fonthausen/NunitoSans
* Playfair Display - The Playfair Display Project Authors - https://github.com/clauseggers/Playfair-Display
* Lora - The Lora Project Authors - https://github.com/cyrealtype/Lora-Cyrillic

Inter, Montserrat, Jost, Nunito Sans, Noto Serif and Noto Serif Bengali are included as Latin/Bengali subsets (woff2) limited to regular-to-bold weights. Playfair Display and Lora are included unmodified.

== Changelog ==

= 1.3.1 =
* Renamed to Framecard Studio (new name, slug, text domain, prefixes and shortcode [framecard_studio]).

= 1.3.0 =
* New: font picker with versatile sans-serif and serif typefaces for the title and both subtitles (bundled, open-licensed, Bangla fallback included).
* Fonts are only downloaded when selected.

= 1.2.1 =
* Fixed Media Library buttons overflowing the sidebar; shorter button labels; layout guard against theme styles.

= 1.2.0 =
* New: visitors can upload their own frame (device or Media Library) and use it instantly.
* Fixed layout problems caused by theme styles (overflowing buttons, sliders, form row, headings).
* Security and coding-standards review for the WordPress.org directory.
* Assets now load on any page that contains the shortcode (previously only a page with the slug "framecard-studio").
* Replaced the bundled font with the open-licensed Noto Sans Bengali.
* Replaced branded frames and sticker with generic ones; added support for custom frames in the uploads folder.
* Fixed the "Reset photo position" error, double photo loading, font loading, uploaded-font selection, sticker size control and default text sizes.
* Faster preview (blurred background is cached), Safari blur fallback, pointer-event dragging for mouse and touch.
* Media Library button is only shown to users who can upload files.
* All text is translatable; labels and keyboard support improved.
* Removed unused jQuery, Thickbox and media-upload dependencies.

= 1.1 =
* Initial private release.
