summaryrefslogtreecommitdiffstats
path: root/generic/tkImgPhoto.c
Commit message (Collapse)AuthorAgeFilesLines
* merge trunkjan.nijtmans2019-06-051-4/+13
|\
| * Better fix. Concatenation of error messages is sometimes not adequatefvogel2019-05-111-7/+11
| |
| * Fix [0d93f2e628]: misleading error message on missed svg optionfvogel2019-05-101-2/+7
| |
* | Merge trunkjan.nijtmans2019-05-101-4/+4
|\ \ | |/
| * Change size_t usages to (internal type) TkSizeT usages, which is "int" when ↵jan.nijtmans2019-04-041-4/+4
| | | | | | | | compiling against 8.x headers.
* | Merge trunkjan.nijtmans2019-04-021-5/+5
|\ \ | |/
| * More use of Tcl_NewWideIntObj(), and more internal use of (size_t), for ↵jan.nijtmans2019-04-021-5/+5
| | | | | | | | bigger ranges.
* | Experiment: let's see if we can deprecate Tk_Offset() in favor of offsetof()jan.nijtmans2018-10-061-5/+5
|/
* More preparation for TIP #494 compatibitly. Add 2 utility functions, which ↵jan.nijtmans2018-08-111-10/+6
| | | | can retreive big strings and ByteArrays without length overflow.
* Change flag NEW_STYLE_COMMANDS into OLD_STYLE_COMMANDS. This makes it easier ↵jan.nijtmans2018-08-081-1/+1
| | | | | to remove the deprecated part in the future. If building with Tcl > 8, Don't build the compatibility Tk_Photo* (From Tk < 8.4 or so) functions any more.
* merge core-8-6-branch. Also Fix ↵jan.nijtmans2017-11-201-0/+9
|\ | | | | | | [f3704d5ec85c9281bba1877e01be9360741ceb07|f3704d5ec8]: "Compiling on Macos High Sierra fails: missing values.h" by syncing Tcl's "tcl.m4"
| * Fix memory leak in tkImgPhoto.c. Backported from androwish. Thanks to ↵jan.nijtmans2017-11-201-0/+9
| | | | | | | | Christian Werner for noticing this!
* | Merge core-8-6-branch (and remove additional end-of-line spacing)jan.nijtmans2017-10-121-23/+23
|\ \ | |/
| * remove some end-of-line spacingjan.nijtmans2017-10-121-2/+2
| |
* | Fix [5239fd749b]: Segfault when copying a photo image to itself. Patch from ↵fvogel2017-09-241-14/+20
|\ \ | |/ | | | | Simon Bachmann.
| * Fix [5239fd749b]: Segfault when copying a photo image to itself. Patch from ↵fvogel2017-09-141-14/+20
| | | | | | | | Simon Bachmann.
* | merge trunkfvogel2017-06-051-47/+122
|\ \
| * | If compiled with -DTK_NO_DEPRECATED, remove the functions ↵jan.nijtmans2017-05-021-1/+2
| |/ | | | | | | | | Tk_PhotoPutBlock_NoComposite/Tk_PhotoPutZoomedBlock_NoComposite/Tk_PhotoExpand_Panic/Tk_PhotoPutBlock_Panic/Tk_PhotoPutZoomedBlock_Panic/Tk_PhotoSetSize_Panic, which only exist to make stub-enabled extensions work which used those old functions. Otherwise, mark those functions as deprecated, causing a compiler warning if the compiler supports this.
| * Fix [e4336bef5d58cc96a438ba0fb5553ea57e94f4d8|e4336bef5d]: Unexpected result ↵jan.nijtmans2017-05-011-46/+120
| |\ | | | | | | | | | when copying a photo image to itself. Thanks to Simon Bachmann for bug report and fix!
| | * Fix [e4336bef5d] (Unexpected result when copying a photo image to itself): ↵simonbachmann2017-04-301-46/+120
| |/ | | | | | | if source and destination image are the same, make a local copy of image data before the actual copy/zoom/subsample.
* | Removed -boolean option from <imageName> transparency get/set subcommandssimonbachmann2017-04-131-16/+13
| |
* | Fix for bug 7c49a7f594c8d47dfdf7b6037b8316e4d51cc36asimonbachmann2017-04-041-1/+0
| |
* | Added -withalpha option to [imageName get].simonbachmann2017-03-231-726/+252
| | | | | | | | | | | | | | The list-of-lists-of-pixel-data format now is a registered format as the others. Thanks to this change, [imageName data] now can return data that includes the alpha channel. Changed the position of the '-alpha' and '-boolean' options to [imageName transparency set]. Updated doc Updated test suite
* | Reference implementation of TIP 166, rev. 1.9simonbachmann2017-03-021-186/+629
|/
* Fix [d4fb4e80d220e46e588f310291fd7a4205e8cd67|d4fb4e80d2]: Image photo ↵jan.nijtmans2017-01-111-1/+5
|\ | | | | | | commands read/write/put do not accept "-" as first letter in file names resp. image data
| * Fix [d4fb4e80d220e46e588f310291fd7a4205e8cd67|d4fb4e80d2]: Image photo ↵jan.nijtmans2017-01-111-0/+4
| |\ | | | | | | | | | commands read/write/put do not accept "-" as first letter in file names resp. image data
| | * Alternative proposed solution for ↵jan.nijtmans2017-01-111-1/+5
| |/ |/| | | | | [d4fb4e80d220e46e588f310291fd7a4205e8cd67|d4fb4e80d2], with test-case.
* | More internal use of size_t. Add test-case imgPhoto-4.74, which shows ↵jan.nijtmans2017-01-101-18/+26
| | | | | | | | error-handling when there are two values on the command line not connected to options.
* | Fixed broken trunk caused by "signed/unsigned mismatch" compiler error on ↵fvogel2015-06-011-3/+3
| | | | | | | | Windows, introduced by [4fe3c06b97] and [07622d5618]
* | Initialize memory to stop valgrind notices about conditionals dependent ondgp2015-05-201-0/+3
| | | | | | reads from uninit memory.
* | [dece631375] Prevent overflows in photo image memory allocations.dgp2015-05-181-13/+33
|\ \
| * | Repair last commit.dgp2015-05-181-6/+4
| | |
| * | [dece631375] Prevent overflows in photo image memory allocations.dgp2015-05-181-13/+35
|/ /
* | [dece63137] Correct problems with overflow computing memory block sizes.dgp2015-05-151-10/+10
| |
* | [06c3fcb136] ImgGetPhoto() had some code misplaced in an earlier commitdgp2015-05-051-3/+3
|\ \ | | | | | | | | | | | | so that it failed to tell all callers when the alpha channel was fully opaque. This triggered another bug in the PNG writer where the alpha vs. non-alpha format choice was broken and confused, leading to corrupt png image files.
* \ \ Fix [3603436fff]: png save has wrong component indexesjan.nijtmans2013-10-281-6/+5
|\ \ \
* | | | Revert [ac229dabaa]. There is a reason the Tcl_GetIndexFromObj wrapper jenglish2013-02-271-6/+6
| | | | | | | | | | | | exists and is used.
* | | | Eliminate all Tcl_GetIndexFromObj calls, which is only a thin wrapper around ↵jan.nijtmans2013-02-271-6/+6
| | | | | | | | | | | | | | | | Tcl_GetIndexFromObjStruct.
* | | | Use internalRep.twoPtrValue.ptr1 in stead of internalRep.otherValuePtr ↵jan.nijtmans2013-02-011-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | everywhere. Change some internal "length" variables from type int to type size_t, so it could handle bigger string sizes (for "novem")
* | | | | minor improvements to flag handlingdkf2012-07-311-4/+4
| | | | |
* | | | | more reorganization of error codes: safety is common failure modedkf2012-07-301-3/+3
| | | | |
* | | | | more auditing of error codesdkf2012-07-301-4/+7
| | | | |
* | | | | Working towards making the error codes more consistent.dkf2012-07-301-32/+35
| | | | |
* | | | | Purged Tcl_AppendElement from all non-test code.dkf2012-07-291-91/+84
| | | | |
* | | | | Much more cleaning up of result handling.dkf2012-07-231-90/+111
| | | | |
* | | | | Working towards adding all the Tcl_SetErrorCode calls that should be there.dkf2012-07-161-8/+62
| | | | | | | | | | | | | | | ** WORK IN PROGRESS **
* | | | | [Bug 3486474]: Inconsistent color scalingjan.nijtmans2012-02-151-1/+1
|\ \ \ \ \
* \ \ \ \ \ Bug-2433260: non-critical error in Tk_PhotoPutBlockjan.nijtmans2012-01-251-3/+3
|\ \ \ \ \ \
* \ \ \ \ \ \ Purge RCS Keywordsdgp2011-06-081-2/+0
|\ \ \ \ \ \ \
* | | | | | | | Remove casts from uses of ckalloc/ckfree/... now that Tcl declares them to bedkf2011-03-121-22/+20
| | | | | | | | | | | | | | | | | | | | | | | | using useful casts internally.